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 sorting of versions making RC tags the latest compared to "real" tags #9

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

mlitre
Copy link
Contributor

@mlitre mlitre commented Jan 30, 2023

Before these changes, the sorting mechanism would not work correctly with alpha, beta or release candidate tags. These tags would appear as the "latest" tag meaning that, for example, a v4.0.0-RC1 would be chosen before a v4.0.0 tag.
To fix this, the sorting was done after adding .0_ to all tags without hyphens. By doing so, they would appear after the RC tags since the underscore comes after hyphen when use version sort.

Modifications to the tests were done accordingly.

Martin Litre and others added 3 commits January 30, 2023 13:15
Now versions are sorted properly when -RC* are added to a tag. To fix
this, an underscore was added to the list of tags and then removed after
the sort. The underscore comes after hyphern in terms of sorting.
@oliviermaridat oliviermaridat merged commit 4f952cb into Fylhan:master Jan 31, 2023
@oliviermaridat
Copy link
Collaborator

Great! Thanks!
I will generate a new release.

@oliviermaridat
Copy link
Collaborator

Version 0.5.1 generated: https://github.com/Fylhan/qompoter/releases/tag/v0.5.1

Thanks @mlitre

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