-
Notifications
You must be signed in to change notification settings - Fork 166
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
add intdot
as version scheme
#166
Comments
@pombredanne What would be the process to get this included? |
This scheme would essentially be like semver but would allow more labels, e.g., 1.2.3.4.5, correct? |
More or less: It just splits at the |
So, we allow any kind of prerelease/build part, like |
I'm currently not sure, what the best way would be. The algorithm in the description does a straight cast to int... Would that be appropriate? Or would So, please provide a suggestion as you go. |
The easiest is to write a regex that separates the two groups, see my current draft. |
Things to be careful of:
The safest option is to specify that the digits must be ASCII digits and include either a maximum supported size or some test cases with excessively large numbers to catch implementations that have unexpected limits. |
@matt-phylum Thank you for your comments and insights. I would suggest:
|
See the univers PR here: aboutcode-org/univers#148 |
No, absolutely not. First of all, I believe it is crucial to use proper, common terms which were coined by RPM and DPKG. This also became obvious when reading this statement:
The definition for a complete versioning string is
I will try to obtain the comprehensive description of the evaluation algorithm RPM uses, which was once (at least from 2003 to 2020) publicly available at https://www.redhat.com/archives/rpm-list/2003-January/msg00182.html, then moved behind a login wall to https://listman.redhat.com/mailman/private/rpm-list/2003-January/msg00182.html, and now it seems to be completely inaccessible. I thoroughly studied the algorithm for versioning string evaluations and comparisons documented in this message in 2018 (but unfortunately did not save it), and AFAIR Consequently IIRC a consideration like this is more or less a no-go (rsp. will fail for some valid cases):
|
Thank you for the explanations and fixing the link! |
I suggest to add a version scheme
intdot
that is defined as follows:To compare 2 versions a and b, do:
This will cover 80% of the currently used version schemes that do not follow one of the well-known version-schemes.
Thoughts?
Flagging @pombredanne for comments.
The text was updated successfully, but these errors were encountered: