Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix snap releases still having version 0.2.0-pre1 instead of 0.2.0 #359

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

adombeck
Copy link
Contributor

@adombeck adombeck commented Feb 3, 2025

git tag --sort=-v:refname sorts tagnames with the same base version but different suffixes in lexicographical order, causing prerelease tags to be listed as higher than the main release. This results in the snaps still having 0.2.0-pre1+... versions instead of 0.2.0+....

Git supports the versionsort.suffix option to avoid exactly that, so let's use it.

UDENG-5906

`git tag --sort=-v:refname` sorts tagnames with the same base version
but different suffixes in lexicographical order, causing prerelease tags
to be listed as higher than the main release. This results in the snaps
still having `0.2.0-pre1+...` versions instead of `0.2.0+...`.

Git supports the `versionsort.suffix` option to avoid exactly that, so
let's use it.
@adombeck adombeck marked this pull request as ready for review February 3, 2025 11:31
@adombeck adombeck requested a review from a team as a code owner February 3, 2025 11:31
@adombeck adombeck merged commit 0d0d6c7 into main Feb 3, 2025
3 of 4 checks passed
@adombeck adombeck deleted the UDENG-5906-fix-snap-versions branch February 3, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants