Skip to content

[release-1.21] Add hack/learn-go-shas.sh for Renovate Go patch updates - #9448

Open
wallrj wants to merge 1 commit into
cert-manager:release-1.21from
wallrj:learn-go-shas-release-1.21
Open

wallrj wants to merge 1 commit into
cert-manager:release-1.21from
wallrj:learn-go-shas-release-1.21

Conversation

@wallrj

@wallrj wallrj commented Oct 9, 2026

Copy link
Copy Markdown
Member

This adds only hack/learn-go-shas.sh, which #9446 makes Renovate run after it bumps the vendored Go patch version on a release branch. Renovate reads the config from master, but runs the post-upgrade task in a checkout of this branch, so the script has to exist here before the first Go patch PR arrives.

The script rewrites the four Go checksums in the tools module from the .sha256 files Go publishes next to each archive. For Go 1.26.9 it produces the checksums that #9444 added by hand.

NONE

[Claude Fable 5.1]

Renovate reads .github/renovate.json5 from master for every base
branch, but it runs post-upgrade tasks in a checkout of the release
branch. The config on master (cert-manager#9446) runs this script after it bumps
VENDORED_GO_VERSION, so the script must exist on this branch too.

The script rewrites the four Go checksums from the .sha256 files Go
publishes next to each archive. It needs neither the Go toolchain nor
jq, so it works while the vendored toolchain's checksums are stale.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@cert-manager-prow

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cert-manager-prow cert-manager-prow Bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 9, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign erikgb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wallrj

wallrj commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

/kind cleanup

@cert-manager-prow cert-manager-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 9, 2026
@wallrj
wallrj marked this pull request as ready for review November 22, 2026 13:55
@cert-manager-prow cert-manager-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant