From c1f0ce743b153f486098b5e76f613f918f1e2c40 Mon Sep 17 00:00:00 2001 From: Minimind <882485+jeff-mccoy@users.noreply.github.com> Date: Thu, 9 Jun 2022 01:13:46 -0500 Subject: [PATCH] Fix goreleaser version (#507) * 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 --- .goreleaser.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0a45e6cf4b..09f57dd479 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -29,6 +29,7 @@ builds: archives: - format: binary + name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}" replacements: darwin: Darwin linux: Linux