Skip to content

build(go): Use Go version from go.mod in release workflow - #1355

Merged
Stefan Bruhns (sbruhns) merged 1 commit into
mainfrom
fix/go-release-go-version
Oct 29, 2026
Merged

Stefan Bruhns (sbruhns) merged 1 commit into
mainfrom
fix/go-release-go-version

Conversation

@sbruhns

Copy link
Copy Markdown
Member

Problem

The releaser workflow in phrase-go fails on every tag push (v4.34.0, v4.35.0). It sets up Go 1.14, which can't parse go 1.23.0 in go.mod, so the goreleaser before hook go mod tidy fails with go.mod:3: usage: go 1.23.

Fix

  • go-version: 1.14 -> go-version-file: go.mod so the release job always matches the module
  • actions/setup-go v2 -> v5 (required for go-version-file)
  • actions/checkout v2 -> v4 (Node 20 deprecation)

test.yml is unchanged (^1.14.2 already resolves to a current Go).

After merge

Re-run the release for v4.34.0 and v4.35.0 once the workflow is deployed to phrase-go.

🤖 Generated with Claude Code

The releaser workflow installed Go 1.14, which cannot parse the
`go 1.23.0` directive in go.mod, so `go mod tidy` in the goreleaser
before hook failed and tag releases (v4.34.0, v4.35.0) were not built.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

No changes detected

@sbruhns
Stefan Bruhns (sbruhns) merged commit c4e40fa into main Oct 29, 2026
12 checks passed
@sbruhns
Stefan Bruhns (sbruhns) deleted the fix/go-release-go-version branch October 29, 2026 10:39
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