当使用semver(语义版本控制)时,如果更改Y,补丁版本Z(x.y.Z)是否应返回0? [英] When using semver (Semantic Versioning) should the patch version Z (x.y.Z) be returned to 0 when Y is changed?
问题描述
来自语义版本控制:
补丁版本Z(x.y.Z | x> 0)仅在向后的情况下必须递增 引入了兼容的错误修复.错误修复定义为 内部更改,可修复错误的行为.
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.
假设我有一个版本为 0.1.12 的程序.如果我必须增加Y( 0.Y.12 ),我应该将Z(0.2.Z)返回为0(成为 0.2.0 )还是保持原样不变(成为 0.2.12 )?
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)?
推荐答案
是.更改其父版本后,所有数字均应重置.
Yes. All numbers should be reset when their parent version is changed.
规范( http://semver.org/)指出:
当次要版本增加时,修补程序版本必须重置为0.
Patch version MUST be reset to 0 when minor version is incremented.
这篇关于当使用semver(语义版本控制)时,如果更改Y,补丁版本Z(x.y.Z)是否应返回0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!