apt: Use commit count to fix version comparisons

previous fix only worked because the numerical portion of the commit
hash happened to be greater. This should do properly fix it.
mautrix
Harvey Tindall 3 years ago
parent 555d5abf59
commit d7ab01063a
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -101,7 +101,7 @@ archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "0{{.ShortCommit}}"
name_template: "0.0.0-{{ .Env.JFA_GO_NFPM_EPOCH }}"
changelog:
sort: asc
filters:

@ -2,4 +2,4 @@
# sets version environment variable for goreleaser to use
# scripts/version.sh goreleaser ...
JFA_GO_VERSION=$(git describe --exact-match HEAD 2> /dev/null || echo 'vgit')
JFA_GO_VERSION="$(echo $JFA_GO_VERSION | sed 's/v//g')" $@
JFA_GO_NFPM_EPOCH=$(git rev-list --all --count) JFA_GO_VERSION="$(echo $JFA_GO_VERSION | sed 's/v//g')" $@

Loading…
Cancel
Save