Skip to content

Add go.mod-only Go version checker - #1

Closed
herve-quiroz wants to merge 1 commit into
mainfrom
claude/go-version-checker
Closed

Add go.mod-only Go version checker#1
herve-quiroz wants to merge 1 commit into
mainfrom
claude/go-version-checker

Conversation

@herve-quiroz

Copy link
Copy Markdown
Contributor

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 use go-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

  • Added .github/workflows/check-go-version.yml. It reads the canonical version from go.mod, compares it against the latest stable Go, and — when behind — opens a PR bumping the single go directive. Because the workflows already read from go.mod, the checker never touches them (no WORKFLOWS registry needed).
  • Documented the invariant in 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

  • The checker workflow YAML validated with a YAML parser.

Part of herve-quiroz/claude_code_environment#355.


✨ Content generated by Claude AI.

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
@herve-quiroz herve-quiroz added the claude Ticket that should be handled by Claude label Jun 18, 2026
@github-actions github-actions Bot added the input required Derived from whether the last interaction was Claude-authored. Do not set by hand label Jun 18, 2026
@herve-quiroz

Copy link
Copy Markdown
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 claude/go-version-convergence PR instead, which carries the same change with slightly refined wording. No functional difference between the two.


✨ Content generated by Claude AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude Ticket that should be handled by Claude input required Derived from whether the last interaction was Claude-authored. Do not set by hand

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant