Skip to content

Commit 50cb244

Browse files
authored
goreleaser: Remove deprecated archives.replacements tag (#127)
This replaces the deprecated archives.replacements tag from goreleaser.yml file with name_templates tag. See more in https://goreleaser.com/deprecations/#archivesreplacements.
1 parent d0b713e commit 50cb244

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.goreleaser.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ builds:
1414
# List of replacements generated by goreleaser to match the output of `uname`
1515
# on various systems. This will make the binary more easily curl-able.
1616
archives:
17-
- replacements:
18-
darwin: Darwin
19-
linux: Linux
20-
windows: Windows
21-
386: i386
22-
amd64: x86_64
17+
- name_template: >-
18+
{{ .ProjectName }}_
19+
{{- title .Os }}_
20+
{{- if eq .Arch "amd64" }}x86_64
21+
{{- else if eq .Arch "386" }}i386
22+
{{- else }}{{ .Arch }}{{ end }}
2323
2424
checksum:
2525
name_template: 'checksums.txt'

0 commit comments

Comments
 (0)