Skip to content

Stop pinning Go to patch versions, use stable in CI#82

Merged
rdimitrov merged 2 commits intomainfrom
stop-pinning-go-patch-version
Apr 9, 2026
Merged

Stop pinning Go to patch versions, use stable in CI#82
rdimitrov merged 2 commits intomainfrom
stop-pinning-go-patch-version

Conversation

@rdimitrov
Copy link
Copy Markdown
Member

Summary

  • go.mod: go 1.26.2go 1.26 — only declare the minimum language version, not a specific patch
  • CI workflows: go-version-file: 'go.mod'go-version: 'stable' — always use the latest stable Go release
  • renovate.json: removed the custom regex manager that was bumping the Go patch version (no longer needed)

Similar to modelcontextprotocol/registry#1137 — avoids noisy Renovate PRs every time a new Go patch drops.

Test plan

  • task passes locally (lint + tests)
  • go mod tidy does not bump go 1.26 back to a patch version
  • CI workflows pick up stable Go and pass

🤖 Generated with Claude Code

rdimitrov and others added 2 commits April 9, 2026 21:35
Drop the patch version from the go directive in go.mod (1.26.2 → 1.26)
so we only declare the minimum language version needed. Switch all CI
workflows to go-version: 'stable' so they always use the latest stable
Go release. Remove the Renovate custom manager that was bumping the Go
patch version — no longer needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes GHSA-hfvc-g4fc-pqhx (High severity) in otel/sdk v1.41.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rdimitrov rdimitrov force-pushed the stop-pinning-go-patch-version branch from 75fe79d to 56d8924 Compare April 9, 2026 18:41
@rdimitrov rdimitrov enabled auto-merge April 9, 2026 18:45
@rdimitrov rdimitrov merged commit 1df1a38 into main Apr 9, 2026
5 checks passed
@rdimitrov rdimitrov deleted the stop-pinning-go-patch-version branch April 9, 2026 18:45
blkt pushed a commit to stacklok/toolhive-registry-server that referenced this pull request Apr 10, 2026
## Summary
- **`go.mod`**: `go 1.26.2` → `go 1.26` — only declare the minimum
language version, not a specific patch
- **`go.mod`**: bumped `toolhive` v0.16.0 → v0.17.0 and `toolhive-core`
v0.0.14 → v0.0.15 (these deps were pinning us to `go 1.26.2`)
- **`renovate.json`**: removed the custom regex manager that was bumping
the Go patch version (no longer needed), and removed the `!golang`
exclusion from the go modules grouping rule

Similar to stacklok/toolhive-core#82 — avoids noisy Renovate PRs every
time a new Go patch drops.

## Test plan
- [x] `task lint-fix` passes locally
- [x] `task test` passes locally
- [x] `go mod tidy` does not bump `go 1.26` back to a patch version
- [ ] CI workflows pick up `stable` Go and pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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