[GH-ISSUE #244] incrementing version numbers #4413

Closed
opened 2026-06-13 12:26:50 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @RoedyGreen on GitHub (Jan 27, 2015).
Original GitHub issue: https://github.com/semver/semver/issues/244

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.

Originally created by @RoedyGreen on GitHub (Jan 27, 2015). Original GitHub issue: https://github.com/semver/semver/issues/244 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.
Author
Owner

@zafarkhaja commented on GitHub (Jan 27, 2015):

Sometimes a version number can be skipped for various reasons. PHP is one such example.

<!-- gh-comment-id:71603034 --> @zafarkhaja commented on GitHub (Jan 27, 2015): Sometimes a version number can be skipped for various reasons. PHP is one such [example](https://wiki.php.net/rfc/php6).
Author
Owner

@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.

<!-- gh-comment-id:237795501 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:350167145 --> @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#4413