mirror of
https://github.com/semver/semver.git
synced 2026-07-11 05:12:48 -05:00
incrementing version numbers #169
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 @RoedyGreen on GitHub (Jan 27, 2015).
In various parts of the semver spec you talk of "incrementing version numbers". This could mean incrementing by 1 or incrementing by any positive integer. I wonder if you could clarify.
Personally I would like only incrementing by 1 so users can tell if they have been missing updates.
@zafarkhaja commented on GitHub (Jan 27, 2015):
Sometimes a version number can be skipped for various reasons. PHP is one such example.
@stokito commented on GitHub (Aug 5, 2016):
It's good point - "incrementing" means adding one but it's not always possible.
For example OpenJDK uses even minor releases for new features (PSU) and odd for security fixes (CPU, Critical Patch Updates)
http://www.oracle.com/technetwork/java/javase/cpu-psu-explained-2331472.html
Also sometimes version may me increased manually for marketing purposes.
And definitelly it may be gap in versions.
When for example v1.1 was released internally in company but declined by QA so next v1.2 was deployed to public repositories.
So if someone tries to find v1.1 it will fail.
That's why if you want to leave developers ability to change manually version then "incrementing" should be changed to "increasing".
But its should be considered carefully. Semver it's for machines, not peoples. It should be calculated automatically and people should't change versions themselves.
@jwdonahue commented on GitHub (Dec 8, 2017):
@RoedyGreen, I would add to the above, that there are workflows that require pre-allocation of major.minor versions to specific teams working on different features in the same sprint. At some point they get pulled into the major or master branch where yet another minor increment may occur for one or all of them.
If you have no further questions or comments, please close this issue at your earliest possible convenience.