Skip to content

Commit 592bd9c

Browse files
authored
inject version at build time via ldflags
1 parent 533e14b commit 592bd9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ builds:
2121
goarch:
2222
- amd64
2323
- arm64
24+
ldflags:
25+
- -s -w -X github.com/ashish0kumar/typtea/cmd.version={{.Version}}
2426

2527
archives:
2628
- id: default
@@ -50,4 +52,4 @@ changelog:
5052

5153
release:
5254
draft: false
53-
prerelease: auto
55+
prerelease: auto

0 commit comments

Comments
 (0)