From d4e2de02f88f8ce38b06f1835b8bcbda72bb2ca9 Mon Sep 17 00:00:00 2001 From: Christopher Henderson Date: Sat, 16 Dec 2023 06:49:58 -0800 Subject: [PATCH] Fix goreleaser deprecation (#783) * Fix goreleaser deprecation * correction example syntax --- v3/.goreleaser.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/v3/.goreleaser.yml b/v3/.goreleaser.yml index 2b84be004..cdd316399 100644 --- a/v3/.goreleaser.yml +++ b/v3/.goreleaser.yml @@ -18,11 +18,14 @@ builds: archives: - wrap_in_directory: true - replacements: - darwin: Darwin - linux: Linux - windows: Windows - amd64: x86_64 + name_template: >- + {{- .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} snapshot: name_template: "{{ .Tag }}-next" release: