-
Notifications
You must be signed in to change notification settings - Fork 54
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
Semver comparison between revbumped packages #679
Labels
kind/bug
Something isn't working
Comments
mudler
added a commit
that referenced
this issue
Sep 21, 2021
"+" is for metadata and not numeric versioning, in fact it cannot be compared and for e.g. a+1 and a+2 are at the same version when comparing in semver notation. By using dashes we refer to internal numbering, and instead can be ordered Fixes #679 Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
mudler
added a commit
that referenced
this issue
Sep 21, 2021
"+" is for metadata and not numeric versioning, in fact it cannot be compared and for e.g. a+1 and a+2 are at the same version when comparing in semver notation. By using dashes we refer to internal numbering, and instead can be ordered Fixes #679 Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
mudler
added a commit
that referenced
this issue
Sep 21, 2021
"+" is for metadata and not numeric versioning, in fact it cannot be compared and for e.g. a+1 and a+2 are at the same version when comparing in semver notation. By using dashes we refer to internal numbering, and instead can be ordered Fixes #679 Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
mudler
added a commit
that referenced
this issue
Sep 21, 2021
"+" is for metadata and not numeric versioning, in fact it cannot be compared and for e.g. a+1 and a+2 are at the same version when comparing in semver notation. By using dashes we refer to internal numbering, and instead can be ordered Fixes #679 Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
mudler
added a commit
that referenced
this issue
Sep 22, 2021
"+" is for metadata and not numeric versioning, in fact it cannot be compared and for e.g. a+1 and a+2 are at the same version when comparing in semver notation. By using dashes we refer to internal numbering, and instead can be ordered Fixes #679 Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
There are still some left overs to take care of before closing the issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, our automation handles revbump by incrementing the number after the
+
, although now that with #653 we index all the packages - this means that theluet
solver will both see e.g.1.0+1
and1.0+2
available.The problem is that in semantic version
1.0+1
and1.0+2
are identical from an ordering perspective. Everything after the+
is considered metadata and can have arbitrary characters, so it's not possible to order them without defining a specific criteriaExpected behavior
Ordering should take into account of numbers and pick the latest, or either move away from
+
and use-
which should be used for internal bumpsAlternatives
Do not use
+
for revbumpsSee also
https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
The text was updated successfully, but these errors were encountered: