fix: preserve _dist layout expected by make dist

Removing no_unique_dist_dir and switching binary to a flat name
changed the _dist/ directory structure goreleaser produces. The
existing make dist target (used by release.yml for Azure uploads)
walks _dist/ subdirectories and names archives after them, so it
would have started producing incorrectly named artifacts. Restoring
the OS-arch subdirectory layout keeps that path working; the new
archives section in this file names GitHub Release assets
independently, so it is unaffected.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/32490/head
Benoit Tigeot 1 month ago
parent 9ab0dd5923
commit c812ac6867
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -55,8 +55,8 @@ builds:
- goos: windows - goos: windows
goarch: loong64 goarch: loong64
main: ./cmd/helm main: ./cmd/helm
binary: helm no_unique_dist_dir: true
mod_timestamp: "{{ .CommitTimestamp }}" binary: "{{ .Os }}-{{ .Arch }}/helm"
ldflags: ldflags:
- -w -s - -w -s
- -extldflags "-static" - -extldflags "-static"

Loading…
Cancel
Save