When using semver (Semantic Versioning) should the patch version Z (x.y.Z) be returned to 0 when Y is changed?

泪湿孤枕 提交于 2019-12-21 11:46:10

问题


From Semantic Versioning:

Patch version Z (x.y.Z | x > 0) MUST be incremented if only backwards compatible bug fixes are introduced. A bug fix is defined as an internal change that fixes incorrect behavior.

Suppose I have a program at version 0.1.12. If I had to increment Y (0.Y.12), should I return Z (0.2.Z) to 0 (becoming 0.2.0) or just keep it unaltered (becoming 0.2.12)?


回答1:


Yes. All numbers should be reset when their parent version is changed.

The specification (http://semver.org/) states:

Patch version MUST be reset to 0 when minor version is incremented.



来源:https://stackoverflow.com/questions/7366092/when-using-semver-semantic-versioning-should-the-patch-version-z-x-y-z-be-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!