Skip to content

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]>
@cjnosal cjnosal force-pushed the stable-sort-buildmeta branch from 410ce6b to eed0ea3 Compare September 29, 2023 18:42
@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