Skip to content

Snapshot version scheme recommendation #2136

Answered by eed3si9n
lefou asked this question in Q&A
Discussion options

You must be logged in to vote

For artifacts following Semantic Versioning, + means build metadata (https://semver.org/#spec-item-10) and:

  1. It must appear after -<pre-release>, and
  2. It must be ignored when determining version precedence

so major.minor.patch+commitcount-hash does not conform to Semantic Versioning scheme.

I'd suggest something like <major>.<minor>.<patch>-alpha<commitcount>+<hash> instead. This would look like 1.0.1-alpha10+1234abcd. Hopefully -alpha10 would be recognized universally as unstable. The only caveat is that it would sort before the supposedly tagged 1.0.1.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lefou
Comment options

lefou Jul 28, 2021
Collaborator Author

Answer selected by lefou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants