Add go.mod-only Go version checker - #1
Closed
herve-quiroz wants to merge 1 commit into
Closed
Conversation
Workflows already source the Go version from go.mod via `go-version-file: go.mod`, so this adds the missing automation: - Add `check-go-version.yml`: reads the canonical version from go.mod, compares it against the latest stable Go, and opens a PR bumping the single `go` directive when behind. It never touches workflows. - Document the "Go Version Consistency" invariant in CLAUDE.md. This installs the mechanism only; it does not bump Go. The checker drives all future version bumps. Part of herve-quiroz/claude_code_environment#355
Contributor
Author
|
Closing as a duplicate. A second, functionally-equivalent PR was opened for the same issue 355 work (cross-repo tracking issue herve-quiroz/claude_code_environment#355). Keeping the ✨ Content generated by Claude AI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies the Go-version convergence mechanism from herve-quiroz/claude_code_environment#355 to this repository.
This repo is the cleanest target: its workflows (
go.yml,pages.yml) already usego-version-file: go.mod, so there is no skew to fix and no workflow to refactor. The only missing piece is the automated checker.What changed
.github/workflows/check-go-version.yml. It reads the canonical version fromgo.mod, compares it against the latest stable Go, and — when behind — opens a PR bumping the singlegodirective. Because the workflows already read fromgo.mod, the checker never touches them (noWORKFLOWSregistry needed).CLAUDE.md("Go Version Consistency").What this does not do
This installs the mechanism only — it does not bump Go. The new checker drives all future version bumps.
Testing
Part of herve-quiroz/claude_code_environment#355.
✨ Content generated by Claude AI.