Skip to content

Commit 6697442

Browse files
fix: use go-version-file in release workflow (#317)
The release workflow hardcoded `go-version: "1.25.6"`, but `go.mod` was bumped to `1.25.7` in #316, causing the v0.0.14 release to fail with: ``` go: go.mod requires go >= 1.25.7 (running go 1.25.6; GOTOOLCHAIN=local) ``` Switch to `go-version-file: "go.mod"` (matching `test.yml`) so the Go version is always read from `go.mod` and can't drift.
1 parent c6901e8 commit 6697442

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2121
with:
22-
go-version: "1.25.6"
22+
go-version-file: "go.mod"
2323
- name: Import GPG Key
2424
id: import_gpg
2525
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0

0 commit comments

Comments
 (0)