From 7829203d82afefc8d62692bd8725f42c8b839026 Mon Sep 17 00:00:00 2001 From: mrekucci <4932785+mrekucci@users.noreply.github.com> Date: Fri, 3 May 2024 08:44:18 -0500 Subject: [PATCH] fix: goreleaser name templates --- .goreleaser.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 82dd88341fa3..500d50b77adf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,7 +28,9 @@ archives: {{- if .IsSnapshot }}{{ .ShortCommit }} {{- else }}{{ .Version }} {{ end }} - {{- if .Env.DIRTY_SUFFIX }}{{ .Env.DIRTY_SUFFIX }}{{ end }}_ + {{- with index .Env "DIRTY_SUFFIX" -}} + {{ . }} + {{- end -}}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 @@ -58,7 +60,9 @@ checksum: {{- if .IsSnapshot }}{{ .ShortCommit }} {{- else }}{{ .Version }} {{- end }} - {{- if .Env.DIRTY_SUFFIX }}{{ .Env.DIRTY_SUFFIX }}{{ end -}} + {{- with index .Env "DIRTY_SUFFIX" -}} + {{ . }} + {{- end -}} _checksums.txt changelog: