Skip to content

fix(go-ci): resolve a bare Go minor to the newest patch - #3

Merged
juicycleff merged 1 commit into
mainfrom
fix/setup-go-check-latest
Aug 17, 2026
Merged

fix(go-ci): resolve a bare Go minor to the newest patch#3
juicycleff merged 1 commit into
mainfrom
fix/setup-go-check-latest

Conversation

@juicycleff

Copy link
Copy Markdown
Contributor

setup-go matches a bare minor against the runner's toolcache before it looks for anything newer, so 1.26 kept resolving to a cached 1.26.5 well after 1.26.6 shipped. That failed govulncheck in a caller on 7 standard-library advisories (GO-2026-5026, -5972, -6088..-6091, -6218) that the newer patch already fixes.

Callers could pin the patch themselves, but that breaks in two places:

  • The matrix job name embeds the version string, so 1.26.6 renames the job to Test (ubuntu-latest, go1.26.6). A branch ruleset requiring Test (ubuntu-latest, go1.26) then waits forever on a check that can never report.
  • primary-go-version is compared against matrix.go-version to pick the coverage combination. Overriding only the primary silently stops coverage uploads, because no matrix entry matches.

check-latest: true avoids both: job names and the coverage comparison stay as they are, and the security scans still run on the patched toolchain.

Applied to all four setup-go steps (matrix, lint, security, verify) so the whole workflow agrees on the toolchain.

🤖 Generated with Claude Code

setup-go matches a bare minor against the runner's toolcache before it looks
for anything newer, so '1.26' kept resolving to a cached 1.26.5 well after
1.26.6 shipped. That failed govulncheck in a caller on 7 standard-library
advisories the newer patch already fixed.

Callers could pin a patch instead, but the matrix job name embeds the version
string, and a branch ruleset requiring 'Test (ubuntu-latest, go1.26)' can never
report once the name changes. check-latest keeps the name and the coverage
gate's primary-version comparison intact while still picking up the fix.
@juicycleff
juicycleff merged commit fb1d0f5 into main Aug 17, 2026
38 checks passed
@juicycleff
juicycleff deleted the fix/setup-go-check-latest branch August 17, 2026 16:57
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.

2 participants