mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
8877fe1ef4
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> This commit will fix bad version tag sort if there is a prerelease on the same commit as a release tag. Current output is shown below ``` ❯ git tag --points-at HEAD --sort=-version:refname --format='%(creatordate)%09%(refname)' Thu Mar 2 21:38:51 2023 +0300 refs/tags/v1.13.0-rc3 Thu Mar 2 21:38:51 2023 +0300 refs/tags/v1.13.0 ``` Test is changed to match current default value so it will fail without this fix. Default value `-` is set to the one that is described inside [docs](https://goreleaser.com/how-it-works/?h=prerelease#how-it-works), but people are still allowed to change it. Output with fix applied ``` ❯ git -c versionsort.suffix=- tag --points-at HEAD --sort -version:refname --format='%(creatordate)%09%(refname)' Thu Mar 2 21:38:51 2023 +0300 refs/tags/v1.13.0 Thu Mar 2 21:38:51 2023 +0300 refs/tags/v1.13.0-rc3 ``` <!-- # Provide links to any relevant tickets, URLs or other resources --> More info about `versionsort.suffix` can be found [here](https://github.com/git/git/blob/master/Documentation/config/versionsort.txt#L5) Docs as well both schemas are updated as well. I am not sure if users should be allowed to change this option at all. |
||
---|---|---|
.. | ||
archivefiles | ||
artifact | ||
builders | ||
client | ||
commitauthor | ||
deprecate | ||
exec | ||
extrafiles | ||
gio | ||
git | ||
golden | ||
http | ||
ids | ||
logext | ||
middleware | ||
pipe | ||
pipeline | ||
semerrgroup | ||
shell | ||
static | ||
testctx | ||
testlib | ||
tmpl | ||
yaml |