Skip to content

Commit dd032cb

Browse files
committed
Inject version in GoReleaser builds
1 parent 7f8c353 commit dd032cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ builds:
1212
- arm64
1313
env:
1414
- CGO_ENABLED=0
15+
ldflags:
16+
- -s -w -X github.com/pushbits/cli/internal/buildconfig.Version=v{{.Version}}
1517

1618
checksum:
1719
algorithm: sha256

0 commit comments

Comments
 (0)