Skip to content

Commit

Permalink
Use .Tag instead of .Version in goreleaser (#40)
Browse files Browse the repository at this point in the history
We used to use `.Version` in the goreleaser template, but that strips
`v` from the version in the cases we want to use that. Switch to `.Tag`
which leaves it intact.
  • Loading branch information
loreto authored Jun 27, 2023
1 parent 2941332 commit bef82f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ builds:
archives:
- files:
- no-files-will-match-* # Glob that does not match to create archive with only binaries.
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"

checksum:
name_template: "checksums.txt"
Expand Down

0 comments on commit bef82f5

Please sign in to comment.