mirror of
https://github.com/semver/semver.git
synced 2026-03-22 14:10:15 -05:00
Does a pre-release version allow modifications to be made under the same version? #283
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 @inkychris on GitHub (Jun 14, 2017).
Section 3 states that:
Does this only apply to version numbers without pre-release versioning? For example, can I release a library with version
1.2.3-SNAPSHOT+timestampmultiple times with changes in each one? This might be for each committed change a developer makes while working on the next release. I suppose this may fall under the SHOULD definition in RFC2119 with regard to ignoring build metadata to determine precedence. In which case, would this only be allowed provided the build metadata could be used to determine precedence eg. timestamp?I may have answered my own question with regard to build metadata precedence but is this something that could be cleared up in the specification?
@FichteFoll commented on GitHub (Jun 14, 2017):
I'm confident that pre-releases are also addressed by this restriction. I don't see a reason for them not to.
Regarding metadata, I would consider them a part of the release identifier, i.e.
1.2.3-SNAPSHOT+2017-06-14and1.2.3-SNAPSHOT+2017-06-15are distinct, yet neither has higher precedence than the other.That said, using a single
SNAPSHOTidentifier for a pre-release is not a good idea for semver-compliant versioning at all.@inkychris commented on GitHub (Jun 15, 2017):
Thanks for your reply! I'm just trying to find a good way of marking internal builds that come from feature branches or merges into master that aren't official releases but is semver-compliant. I'm now thinking perhaps after
1.1.0for example, any internal build from master would be1.2.0-adhoc-YYYY.MM.DD.HHmmss.fffeven though a timestamp feels a lot more like build metadata. I feel like trying to address versioning on feature branches where they are essentially equal in precedence is beyond the scope of semantic versioning at this time?@inkychris commented on GitHub (Jun 15, 2017):
There a multiple issues about nightly builds and parallel "channels" etc. (#200, #264, #265, #163) so closing this as reading most of those issues has answered my question. Because my case is with regard to internal releases and not public ones, I'm comfortable with exercising my judgement on when build metadata can be used to determine precedence as these would essentially be disposable builds for developers anyway.
@claell commented on GitHub (Sep 13, 2019):
I'll also link to #6 as I think it is also related.