mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[GH-ISSUE #45] Dashes in pre-release and build version #2750
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sunsided on GitHub (Aug 30, 2012).
Original GitHub issue: https://github.com/semver/semver/issues/45
2.0.0-rc.1 states in §10 and §11 that " Identifiers MUST be comprised of only ASCII alphanumerics and dash
[0-9A-Za-z-]". This suggests that the pre-release or build part may contain a dash. Since there is no fixed order defined for these parts (apart from precedence calculation in §12), either0.1.2-alpha-2+b232-3and0.1.2+b232-3-alpha-2would be considered valid, making it impossible to distinguish the version parts.@lukaszmoroz commented on GitHub (Aug 30, 2012):
"9. A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version."
Emphasis mine. The pre-release part must be first, so there is no ambiguity.
@sunsided commented on GitHub (Sep 1, 2012):
You're right.