Skip to content

Commit 6045b02

Browse files
committed
build: upgrade goreleaser syntax
archives.replacements has been deprecated since 2022-11-24 (v1.14.0) and was removed in 2023-06-06 (v1.19.0) which caused the following error during an attempted release earlier today ⨯ release failed after 0s error=yaml: unmarshal errors: line 31: field replacements not found in type config.Archive this commit applys the recommended fix as per - https://goreleaser.com/deprecations/#archivesreplacements
1 parent 77299d7 commit 6045b02

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.goreleaser.yaml

+8-7
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ builds:
2828
- goos: windows
2929
goarch: arm64
3030
archives:
31-
- replacements:
32-
darwin: Darwin
33-
linux: Linux
34-
windows: Windows
35-
386: i386
36-
amd64: x86_64
37-
format_overrides:
31+
- format_overrides:
3832
- goos: windows
3933
format: zip
34+
name_template: >-
35+
{{- .ProjectName }}_
36+
{{- title .Os }}_
37+
{{- if eq .Arch "amd64" }}x86_64
38+
{{- else if eq .Arch "386" }}i386
39+
{{- else }}{{ .Arch }}{{ end }}
40+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
4041
checksum:
4142
name_template: 'checksums.txt'
4243
snapshot:

0 commit comments

Comments
 (0)