Skip to content

Commit

Permalink
Fix 'replacements' deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasselmeci committed Oct 4, 2023
1 parent c2951e9 commit 5305a50
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5305a50

Please sign in to comment.