diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cf08383..a590d80 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,6 +13,8 @@ builds: - linux - windows - darwin + ldflags: + - -X github.com/laureanray/clibgen/cmd.version=`git tag --sort=-version:refname | head -n ` checksum: name_template: 'checksums.txt' snapshot: