Skip to content

Commit

Permalink
release: further solve backwards compatible names
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Aug 8, 2023
1 parent bca4b33 commit 3517a21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ archives:
- binary-linux
- binary-darwin
# NB: specifically crafted to ensure compatibility with release artifacts < v3.8.0.
name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}.{{ .Arch }}'
name_template: '{{ .ProjectName }}-v{{ .Version }}.{{ .Os }}.{{ .Arch }}'

- id: archive-windows
format: binary
builds:
- binary-windows
# NB: specifically crafted to ensure compatibility with release artifacts < v3.8.0.
name_template: '{{ .ProjectName }}-{{ .Version }}'
name_template: '{{ .ProjectName }}-v{{ .Version }}'

- id: archive-darwin-universal
format: binary
Expand All @@ -129,11 +129,11 @@ archives:
# NB: specifically crafted to ensure compatibility with release artifacts < v3.8.0.
# We can't bundle this with the other unix archive, because .Arch becomes "all".
# Before v3.8.0, this used to be _just_ the AMD64 binary.
name_template: '{{ .ProjectName }}-{{ .Version }}.darwin'
name_template: '{{ .ProjectName }}-v{{ .Version }}.darwin'

# xref: https://goreleaser.com/customization/checksum/
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}.checksums.txt"
name_template: "{{ .ProjectName }}-v{{ .Version }}.checksums.txt"
algorithm: sha256
ids:
- archive-unix
Expand Down

0 comments on commit 3517a21

Please sign in to comment.