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

Ignore build metadata for sort order #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cjnosal
Copy link

@cjnosal cjnosal commented Sep 29, 2023

Use sort.Stable for repeatable sorts of semantically-equal versions

Build metadata MUST be ignored when determining version precedence
https://semver.org/spec/v2.0.0.html#spec-item-10

related: carvel-dev/kapp-controller#1338

Use sort.Stable for repeatable sorts of semantically-equal versions

Signed-off-by: Conor Nosal <[email protected]>
@praveenrewar
Copy link
Member

Thank you so much for the PR @xtreme-conor-nosal! This seems like a reasonable change to me and the PR looks good to me too.
As you have correctly pointed out, this should be expected behaviour based on semver specs, although since I am not a semver expert I will ask others about what they think of this.

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