fix: align Go version across go.work and CI with go.mod requirement#48
Open
rennerdo30 wants to merge 1 commit into
Open
fix: align Go version across go.work and CI with go.mod requirement#48rennerdo30 wants to merge 1 commit into
rennerdo30 wants to merge 1 commit into
Conversation
go.mod requires 'go 1.25.0', but go.work declared 'go 1.24.0' and the CI workflow pinned GO_VERSION "1.24". With Go's toolchain checking, the lower toolchain in CI fails module download/verification because the module's required Go version (1.25.0) exceeds the configured 1.24, breaking every Backend CI job. This aligns the workspace and CI to satisfy go.mod without downgrading it: - go.work: go 1.24.0 -> go 1.25.0 - .github/workflows/ci.yml: GO_VERSION "1.24" -> "1.25" Verified locally with the default workspace (GOWORK on): `go build ./...` and `go test ./...` both pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
The repository had a pre-existing Go version mismatch that broke every Backend CI job at module download/verification:
go.modrequiresgo 1.25.0go.workdeclaredgo 1.24.0.github/workflows/ci.ymlpinnedGO_VERSION: "1.24"Because the module's required Go version (1.25.0) exceeds the toolchain configured in CI (1.24), Go's version checking fails before/at module download, failing the Backend CI jobs. This is unrelated to any dependency bump.
Fix
Align the workspace and CI to satisfy
go.modwithout downgrading it:go.work:go 1.24.0→go 1.25.0.github/workflows/ci.yml:GO_VERSION "1.24"→"1.25"go.modis left at1.25.0(not downgraded).Verification
Verified locally with the default workspace (GOWORK on, local Go 1.26.4):
go build ./...— passesgo test ./...— all packages pass🤖 Generated with Claude Code