Skip to content

fix(go-binary-release): build with the newest patch of the declared Go minor - #19

Merged
boeboe merged 1 commit into
mainfrom
fix/release-go-latest-patch
Nov 7, 2026
Merged

boeboe merged 1 commit into
mainfrom
fix/release-go-latest-patch

Conversation

@boeboe

@boeboe boeboe commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Release builds used go-version-file, which installs go.mod's exact version. On 2026-11-07 the 24 released tools were built with anything from go1.24.0 to go1.27.3: go 1.26.0 gave go1.26.0 (no patch fixes since), go 1.26 gave go1.26.10.

Change (both setup-go steps of go-binary-release.yml):

  • New step Resolve Go version reads the go directive's minor (and a toolchain line's, if newer) from the module's go.mod.
  • setup-go installs the latest patch of that minor (go-version: 1.26, check-latest: true).
  • The go directive stays the floor for users; it no longer pins the compiler of shipped binaries.

No input, default, job name or permission changes. go-package-release.yml only runs tests with setup-go and is unchanged.

Tests: scripts/selftest/go-version.sh runs the exact step script (via extract-step.py) on fixtures: go 1.26.0, go 1.26, newer toolchain, same-minor toolchain, two-digit minor (1.9 vs 1.10), no go directive, missing file. It also checks both copies of the step are identical. New Selftest job go-version. README section "Go version of release builds" and an AGENTS.md Commands row. otfabric-policy check: compliant.

Callers pick this up when they move their pin to the tag that contains it.

🤖 Generated with Claude Code

…o minor

setup-go with go-version-file installed go.mod's exact version, so a module
declaring go 1.26.0 shipped binaries built with go1.26.0 while go 1.26 got
the latest 1.26.x. Releases of the same day ranged from go1.24.0 to
go1.27.3. A new step resolves the minor of the go directive (or of a newer
toolchain line) and setup-go installs its latest patch with check-latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boeboe
boeboe merged commit e2ca51c into main Nov 7, 2026
33 checks passed
@boeboe
boeboe deleted the fix/release-go-latest-patch branch November 7, 2026 23:55
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