Skip to content

Commit 4b358b3

Browse files
committed
fix: revert to GO_VERSION env var for Go version
Runtime.Goversion is not available in GoReleaser templates. Use environment variable approach as before.
1 parent ba43fb1 commit 4b358b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ builds:
4141
- -X main.version={{.Version}}
4242
- -X main.commit={{.ShortCommit}}
4343
- -X main.buildDate={{.Date}}
44-
- -X main.goVersion={{.Runtime.Goversion}}
44+
- -X main.goVersion={{.Env.GO_VERSION}}
4545
- -X main.builtBy=goreleaser
4646

4747
archives:

0 commit comments

Comments
 (0)