Skip to content

Commit 1b646f3

Browse files
fix: correct archive name template in GoReleaser
The GoReleaser configuration was causing build failures due to archive name collisions. The `archives.name_template` did not include architecture-specific variables, resulting in multiple archives being generated with the same filename. This commit updates the `name_template` to include `Goamd64`, `Goarm`, and `Go386` variables, ensuring that each archive has a unique name. This resolves the build error and makes the release process more robust.
1 parent d94e24d commit 1b646f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- windows
1212
- darwin
1313
archives:
14-
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os | title }}_{{ .Arch | replace "386" "i386" | replace "amd64" "x86_64" }}'
14+
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os | title }}_{{ .Arch | replace "386" "i386" | replace "amd64" "x86_64" }}{{ with .Goamd64 }}_{{ . }}{{ end }}{{ with .Goarm }}_{{ . }}{{ end }}{{ with .Go386 }}_{{ . }}{{ end }}'
1515
checksum:
1616
name_template: 'checksums.txt'
1717
snapshot:

0 commit comments

Comments
 (0)