Skip to content

Commit

Permalink
Fix goreleaser version (#507)
Browse files Browse the repository at this point in the history
* Fix goreleaser version
* update binary names to use the version tag as well

Apparently goreleaser thought it would be swell to strip the (perfectly legal) v prefix from the version tag....

https://goreleaser.com/customization/templates/#fn:1
  • Loading branch information
jeff-mccoy authored Jun 9, 2022
1 parent ffa6b71 commit c1f0ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
- darwin
dir: src
ldflags:
- -s -w -X github.com/defenseunicorns/zarf/src/config.CLIVersion={{.Version}}
- -s -w -X github.com/defenseunicorns/zarf/src/config.CLIVersion={{.Tag}}
goarch:
- amd64
- arm64
Expand All @@ -29,6 +29,7 @@ builds:
archives:
-
format: binary
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
Expand Down

0 comments on commit c1f0ce7

Please sign in to comment.