Skip to content

add lexicographic vers scheme #443

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions VERSION-RANGE-SPEC.rst
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,6 @@ These are a few known versioning schemes for some common Package URL

These are generic schemes, to use sparingly for special cases:

- **generic**: a generic version comparison algorithm (which will be specified
later, likely based on a split on any wholly alpha or wholly numeric segments
and dealing with digit and string comparisons, like is done in libversion)

- **none**: a generic versioning scheme for a range containing no version.
``vers:none/*`` is the only valid vers form for this scheme.

Expand All @@ -658,6 +654,8 @@ These are generic schemes, to use sparingly for special cases:
non-negative integers, and ignoring leading zeros. Interpretation of the
version should stop at the first character that is not a digit or a dot.

- **lexicographic**: a generic versioning scheme that compares versions based on lexicographic order, interpreted as UTF-8.

A separate document will provide details for each versioning scheme and:

- how to convert its native range notation to the ``vers`` notation and back.
Expand Down