From 5e2512ab65baf283fafd3dafcde04bf1a1c5a56c Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario <653394+eapolinario@users.noreply.github.com> Date: Fri, 7 Jul 2023 07:36:43 -0700 Subject: [PATCH] Fix archive.replacements in goreleaser (#109) --- .goreleaser.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1cd0b05..1d6d9fe 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,17 +15,12 @@ builds: archives: - id: datacatalog-archive name_template: |- - datacatalog_{{ .Tag }}_{{ .Os }}_{{ .Arch -}} - {{- with .Arm -}} - {{- if (eq . "6") -}}hf - {{- else -}}v{{- . -}} - {{- end -}} - {{- end -}} + datacatalog_{{ .Tag }}_{{ .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} builds: - datacatalog - replacements: - 386: i386 - amd64: x86_64 format_overrides: - goos: windows format: zip