Skip to content

Commit 47dd659

Browse files
Fix: Update .goreleaser.yml to v2 syntax
The .goreleaser.yml file was using deprecated syntax from GoReleaser v1, causing the build to fail. This commit updates the configuration to use the v2 syntax, including replacing 'archives.replacements' and 'snapshot.name_template' with their modern equivalents. This ensures the build will pass and preserves the original artifact naming convention.
1 parent af8e81f commit 47dd659

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.goreleaser.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ builds:
1111
- windows
1212
- darwin
1313
archives:
14-
- replacements:
15-
darwin: Darwin
16-
linux: Linux
17-
windows: Windows
18-
386: i386
19-
amd64: x86_64
14+
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os | title }}_{{ .Arch | replace "386" "i386" | replace "amd64" "x86_64" }}'
2015
checksum:
2116
name_template: 'checksums.txt'
2217
snapshot:
23-
name_template: "{{ incpatch .Version }}-next"
18+
version_template: "{{ incpatch .Version }}-next"
2419
changelog:
2520
sort: asc
2621
filters:

0 commit comments

Comments
 (0)