Skip to content

Commit 1c64bee

Browse files
committed
fix: add GO_VERSION environment variable for release
- Set GO_VERSION in GitHub Actions workflow - Use simple go1.24 format matching Go's version string - Keep goVersion in ldflags for version info
1 parent 54e03c9 commit 1c64bee

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
48+
GO_VERSION: "go1.24"
4849

4950
- name: Upload assets
5051
uses: actions/upload-artifact@v4

.goreleaser.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ before:
44
hooks:
55
- go mod tidy
66
- go test ./...
7-
env:
8-
- GO_VERSION={{ if index .Env "GO_VERSION" }}{{ .Env.GO_VERSION }}{{ else }}{{ .Runtime.Goversion }}{{ end }}
97

108
builds:
119
- id: tokenizer

0 commit comments

Comments
 (0)