Skip to content

Sync go.mod Go version via Renovate#1235

Merged
tommysitu merged 1 commit into
masterfrom
renovate-sync-go-mod
Jun 9, 2026
Merged

Sync go.mod Go version via Renovate#1235
tommysitu merged 1 commit into
masterfrom
renovate-sync-go-mod

Conversation

@tommysitu

Copy link
Copy Markdown
Member

What

Adds a custom regex manager to .github/renovate.json so Renovate also bumps the go directive in go.mod.

Why

The recent Go 1.26.4 update updated the CircleCI image, Dockerfile, CONTRIBUTING.md, and CLAUDE.md — but left go.mod at go 1.26.3. Renovate's built-in gomod manager treats the go directive as the module's minimum language version and intentionally won't bump it for patch releases, so go.mod drifted from every other Go version reference.

How

A new custom regex manager scoped to go.mod matches the go x.y.z directive line ((?m)^go ...) and resolves it via the golang-version datasource under depName go — the same datasource/depName as the existing docs manager, so it folds into the same grouped "Go" PR rather than opening a separate one.

Note

Raising the go directive sets the module's minimum required Go version, forcing builds onto the newer patch. That's a deliberate change from Renovate's default conservative stance — appropriate for an application like Hoverfly.

🤖 Generated with Claude Code

Add a custom regex manager so Renovate also bumps the go directive in
go.mod, keeping it in sync with the CircleCI image, Dockerfile, and docs.
Previously the gomod manager left the directive untouched on patch
releases, causing go.mod to drift from the other Go version references.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tommysitu tommysitu merged commit be1ef8c into master Jun 9, 2026
2 of 3 checks passed
@tommysitu tommysitu deleted the renovate-sync-go-mod branch June 9, 2026 20:45
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