From e5cb71ffe05b7e77cf23170cd91f560920845ec4 Mon Sep 17 00:00:00 2001 From: Piyush Garg Date: Tue, 1 Aug 2023 17:30:57 +0530 Subject: [PATCH] Fix extra space in binary names This will remove the extra space getting added to the binaries name making home brew binaries fail and also the binaries getting attached to github release have an extra '.' in name --- .goreleaser.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cce488eae..51fec1b41 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,8 +24,8 @@ builds: archives: - name_template: >- {{ .Binary }}_ - {{ .Version }}_ - {{ .Os }}_ + {{- .Version }}_ + {{- .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "darwin" }}MacOS @@ -92,7 +92,7 @@ brews: nfpms: - file_name_template: >- tkn-pac- - {{.Version}}_{{.Os}}- + {{- .Version}}_{{.Os}}- {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else if eq .Arch "darwin" }}MacOS