Skip to content

Use stable Go version in workflows#144

Merged
jonasbn merged 2 commits intomainfrom
update/go-workflows-stable-version
May 4, 2026
Merged

Use stable Go version in workflows#144
jonasbn merged 2 commits intomainfrom
update/go-workflows-stable-version

Conversation

@jonasbn
Copy link
Copy Markdown
Owner

@jonasbn jonasbn commented May 4, 2026

Summary

  • Replace hardcoded go-version: 1.25.7 with go-version: stable in go.yml and release.yml
  • codeql.yml uses Autobuild with no explicit Go version — no change needed
  • go.mod minimum version (go 1.25.0) continues to serve as the floor

Using stable means CI and release builds automatically pick up new patch (and minor) releases without manual workflow updates, while Go's compatibility guarantee keeps this low-risk.

Test plan

  • Verify the Go CI workflow passes on this PR
  • Confirm setup-go resolves stable to the expected Go version in the workflow logs

🤖 Generated with Claude Code

Using `go-version: stable` instead of a hardcoded patch version so CI
and release builds automatically pick up the latest stable Go release
without manual version bumps.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 4, 2026 12:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s GitHub Actions workflows to stop pinning an exact Go patch version and instead let actions/setup-go resolve stable. In this codebase, that affects both routine CI (go.yml) and tagged release publishing (release.yml).

Changes:

  • Replaced the pinned Go toolchain in the main CI workflow with go-version: stable.
  • Replaced the pinned Go toolchain in the GoReleaser workflow with go-version: stable.
  • Left the module’s declared minimum Go version (go 1.25.0) unchanged.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/go.yml Changes the CI workflow to test/build against the floating stable Go release.
.github/workflows/release.yml Changes the tagged release workflow to publish artifacts with the floating stable Go release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/go.yml Outdated
Copilot finished work on behalf of jonasbn May 4, 2026 12:10
@jonasbn jonasbn merged commit 483cc4e into main May 4, 2026
6 checks passed
@jonasbn jonasbn deleted the update/go-workflows-stable-version branch May 4, 2026 12:17
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.

3 participants