Skip to content

Commit

Permalink
Use period as separator for snapshot builds
Browse files Browse the repository at this point in the history
A tilde ("~") always sorts first on Debian-based systems while empty
parts are equal to zero (see [1]). Development snapshot builds are named
starting with the most recent tag, so sorting them before that tag is
not desirable.

[1]
https://www.debian.org/doc/debian-policy/ch-controlfields.html#version
  • Loading branch information
hansmi committed Aug 9, 2021
1 parent 18c9fe5 commit a7fd058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ release:
prerelease: auto

snapshot:
name_template: '{{ .Tag }}~snapshot{{ replace (replace .Date ":" "") "-" "" }}-g{{ .ShortCommit }}'
name_template: '{{ .Tag }}.snapshot{{ replace (replace .Date ":" "") "-" "" }}.g{{ .ShortCommit }}'

# vim: set sw=2 sts=2 et :

0 comments on commit a7fd058

Please sign in to comment.