Skip to content

Fix Go version inconsistency: make go.mod authoritative#876

Merged
statik merged 4 commits intomainfrom
claude/fix-go-version-inconsistency-BHKqx
Feb 13, 2026
Merged

Fix Go version inconsistency: make go.mod authoritative#876
statik merged 4 commits intomainfrom
claude/fix-go-version-inconsistency-BHKqx

Conversation

@statik
Copy link
Member

@statik statik commented Feb 13, 2026

  • WORKSPACE: change go_register_toolchains from 1.22.8 to 1.21.13
    (latest patch matching go.mod's go 1.21)
  • release-publisher.yml: replace hardcoded go-version: 1.25.6 with
    go-version-file: 'go.mod' (same pattern ci.yaml already uses)
  • Pin actions/setup-go from @master to @v6 for stability

https://claude.ai/code/session_01BJknyuarF3vboYMFKJRqS8

- WORKSPACE: change go_register_toolchains from 1.22.8 to 1.21.13
  (latest patch matching go.mod's `go 1.21`)
- release-publisher.yml: replace hardcoded `go-version: 1.25.6` with
  `go-version-file: 'go.mod'` (same pattern ci.yaml already uses)
- Pin actions/setup-go from @master to @v6 for stability

https://claude.ai/code/session_01BJknyuarF3vboYMFKJRqS8
Add go_version.bzl repository rule that parses go.mod at build time
and exports GO_VERSION for use by go_register_toolchains. This
eliminates the need to manually keep the WORKSPACE version in sync.

Also update go.mod from "go 1.21" to "go 1.21.13" since Bazel's
go_register_toolchains requires a full major.minor.patch version.

https://claude.ai/code/session_01BJknyuarF3vboYMFKJRqS8
- Move verify-labels job from lint.yml into label-check.yml so that
  label add/remove events only re-run the label check, not shellcheck
  and golangci-lint
- Remove labeled/unlabeled triggers from lint.yml
- Update CLAUDE.md to list the specific required labels
- Fix go_version.bzl: Starlark split() requires an explicit separator

https://claude.ai/code/session_01BJknyuarF3vboYMFKJRqS8
golang.org/x/mod@v0.21.0 (pulled in by gazelle_dependencies) requires
go >= 1.22.0. The original WORKSPACE had 1.22.8 for this reason — the
go.mod directive was just outdated.

https://claude.ai/code/session_01BJknyuarF3vboYMFKJRqS8
@statik statik enabled auto-merge February 13, 2026 03:45
@statik statik merged commit 7e2ea36 into main Feb 13, 2026
6 checks passed
@statik statik deleted the claude/fix-go-version-inconsistency-BHKqx branch February 13, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants