Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ builds:
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With goos including darwin and windows, adding arm to goarch will make GoReleaser attempt unsupported target pairs (e.g., darwin/arm and likely windows/arm), which will fail the release build. Consider splitting into a separate build entry for linux/arm only, or add ignore rules to exclude non-linux arm targets.

Suggested change
- "7"
- "7"
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +24
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding goarm builds for both 6 and 7 will produce multiple artifacts with the same .Os/.Arch (linux/arm), but archives.name_template currently omits {{ .Arm }}. This can cause archive name collisions/overwrites (and incorrect checksums/formula URLs). Update the archive naming (and any related URL templates) to include the ARM variant for arm builds.

Copilot uses AI. Check for mistakes.
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
ldflags:
- -s -w -X main.version={{.Version}}

archives:
- formats:
- tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
formats:
Expand Down