From 5305a50d8274366caeec9e046fa914a275246665 Mon Sep 17 00:00:00 2001 From: Matyas Selmeci Date: Wed, 4 Oct 2023 10:19:55 -0500 Subject: [PATCH] Fix 'replacements' deprecation https://goreleaser.com/deprecations/#nfpmsreplacements --- .goreleaser.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 806cd58..8357d1f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -128,9 +128,7 @@ nfpms: - src: resources/10-stash-plugin.conf dst: "/etc/condor/config.d/10-stash-plugin.conf" type: config|noreplace - replacements: - amd64: x86_64 - file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ .Arch }}" + file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ if eq .Arch \"amd64\" }}x86_64{{ else }}{{ .Arch }}{{ end }}" deb: contents: - src: LICENSE.txt @@ -170,11 +168,9 @@ nfpms: dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/LICENSE.txt" - src: README.md dst: "/usr/share/doc/{{ .PackageName }}-{{ .Version }}/README.md" - replacements: - amd64: x86_64 replaces: - stashcache-client < 6.4.0 - file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ .Arch }}" + file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}.{{ if eq .Arch \"amd64\" }}x86_64{{ else }}{{ .Arch }}{{ end }}" deb: file_name_template: "{{ .PackageName }}-{{ .Version }}-{{ .Release }}_{{ .Arch }}" contents: