Skip to content

Build releases with the Go version from go.mod - #213

Open
kinbiko wants to merge 1 commit into
cloudspannerecosystem:masterfrom
kinbiko:kinbiko/release-go-version-from-go-mod
Open

kinbiko wants to merge 1 commit into
cloudspannerecosystem:masterfrom
kinbiko:kinbiko/release-go-version-from-go-mod

Conversation

@kinbiko

@kinbiko kinbiko commented Oct 22, 2026

Copy link
Copy Markdown

WHY

The release workflow installs Go 1.24.x, but go.mod requires go 1.26.10 since #212.
The v0.11.0 release got go1.26.10 only because GOTOOLCHAIN=auto changed to the toolchain from go.mod during the build (go version -m yo on the release binary shows go1.26.10).
Go 1.26.10 blocks the revoked eMudhra intermediate CAs (https://bugzilla.mozilla.org/show_bug.cgi?id=2083449), so the release toolchain must always match go.mod.

WHAT

Change actions/setup-go to use go-version-file: go.mod.
The workflow then installs the required toolchain directly and doesn't depend on GOTOOLCHAIN=auto.
The release binaries don't change.

The release workflow pinned Go 1.24.x.
v0.11.0 only got go1.26.10 (which blocks the revoked eMudhra intermediate CAs) through GOTOOLCHAIN auto-switching.
Reading the version from go.mod makes the toolchain explicit and keeps it in step with go.mod bumps.
@google-cla

google-cla Bot commented Oct 22, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@kinbiko

kinbiko commented Oct 22, 2026

Copy link
Copy Markdown
Author

CLA signed, please re-run.

@kinbiko
kinbiko marked this pull request as ready for review October 22, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant