Skip to content

Commit 7bf4f12

Browse files
authored
Fix version (#1)
* use correct build time injection after refactor
1 parent e63ab8a commit 7bf4f12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ builds:
2222
- -trimpath
2323
ldflags:
2424
- -s -w
25-
- -X main.version=v{{.Version}}
26-
- -X main.commit={{.Commit}}
27-
- -X main.date={{.Date}}
25+
- -X github.com/xx4h/hctl/cmd.version=v{{.Version}}
26+
- -X github.com/xx4h/hctl/cmd.commit={{.Commit}}
27+
- -X github.com/xx4h/hctl/cmd.date={{.Date}}
2828

2929
archives:
3030
- format: tar.gz

0 commit comments

Comments
 (0)