在 http://semver.org/spec/v2.0.0.html我们有一个关于如何以创建标准的方式管理软件版本控制并避免一些依赖关系管理问题的“正式描述”。在 item-spec-7我们有如下:
Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.
- 1)粗体句子的确切含义是什么?
- 1.1) 是否意味着我可以为我想要的补丁选择任何值?但我不能只改变当前值的补丁级别?
项目 1.1 对我来说很有意义,但句子顺序让我感到困惑。毕竟,Minor 值刚刚增加,并且补丁被重置为 0(零)。
我猜对了吗?
提前致谢!
最佳答案
据我所知 sermver.org (2.0.0) 的iten-spec 7 ,描述了如何增加次要版本值:
- Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.
它可能会在这个新版本的代码中包含补丁级别的更改,并进行轻微增量。但仅补丁级别的更改无法让我们实现较小的增量。另一方面,它以 item-spec 6 表示:
- 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.
关于version - 在 "SemVer.org"中,第 7 项中的 "It MAY include patch level changes"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44913559/