Skip to content

Commit b9fea0e

Browse files
committed
chore: embed version information to binary on build
1 parent f7fd8e4 commit b9fea0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.goreleaser.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ before:
55
builds:
66
- env:
77
- CGO_ENABLED=0
8+
- ldflags:
9+
- -X "github.com/suin/git-remind/app/cli.Name=git-remind"
10+
-X "github.com/suin/git-remind/app/cli.Description=Never forget to git commit and push"
11+
-X "github.com/suin/git-remind/app/cli.Version={{.Version}}"
812
archive:
913
replacements:
1014
darwin: Darwin

0 commit comments

Comments
 (0)