We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5566f0 commit 221c86eCopy full SHA for 221c86e
.goreleaser.yml
@@ -7,7 +7,7 @@ builds:
7
env:
8
- CGO_ENABLED=0
9
ldflags: |
10
- -s -w -extldflags '-static'
+ -s -w -extldflags '-static' -X "main.GitTag={{.Tag}}" -X "main.GitCommit={{.ShortCommit}}" -X "main.GitDirty= " -X "main.BuildTime={{.Date}}"
11
goos:
12
- linux
13
goarch:
0 commit comments