Skip to content

Commit 306b713

Browse files
committed
build: use GOVERSION env variable for Go build version detection
- Use the GOVERSION environment variable instead of running go version to set the Go version in build flags Signed-off-by: appleboy <[email protected]>
1 parent 368258c commit 306b713

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
@@ -63,7 +63,7 @@ builds:
6363
- -X 'github.com/appleboy/CodeGPT/version.Version={{.Version}}'
6464
- -X 'github.com/appleboy/CodeGPT/version.BuildTime={{.Date}}'
6565
- -X 'github.com/appleboy/CodeGPT/version.GitCommit={{.FullCommit}}'
66-
- -X 'github.com/appleboy/CodeGPT/version.GoVersion=$(go version | cut -d " " -f 3)'
66+
- -X 'github.com/appleboy/CodeGPT/version.GoVersion={{.Env.GOVERSION}}'
6767
- -X 'github.com/appleboy/CodeGPT/version.BuildOS={{.Os}}'
6868
- -X 'github.com/appleboy/CodeGPT/version.BuildArch={{.Arch}}'
6969
binary: >-

0 commit comments

Comments
 (0)