在 "SemVer.org" 中,第 7 项中的 "It MAY include patch level changes" 是什么意思?
In "SemVer.org" what does mean "It MAY include patch level changes" in item 7?
在http://semver.org/spec/v2.0.0.html we have a "formal description" about how to manage software versioning in a way to create a standard and avoid some dependencies management problems. In the 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) 意味着我可以为我想要的 patch 选择任何值?但是我不能只改变当前值的补丁级别?
项目1.1对我来说很有意义,但句子顺序让我感到困惑。毕竟,Minor 值刚刚增加并且 patch 被重置为 0(零)。
我做对了吗?
提前致谢!
It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.
意味着如果你在1.1.0,然后你想发布一堆补丁级别的变化,你可能会碰到1.2.0
如果你在 1.1.23 并且想要发布下一个次要版本,那么你必须重置补丁,1.2.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.
在http://semver.org/spec/v2.0.0.html we have a "formal description" about how to manage software versioning in a way to create a standard and avoid some dependencies management problems. In the 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) 意味着我可以为我想要的 patch 选择任何值?但是我不能只改变当前值的补丁级别?
项目1.1对我来说很有意义,但句子顺序让我感到困惑。毕竟,Minor 值刚刚增加并且 patch 被重置为 0(零)。
我做对了吗?
提前致谢!
It MAY include patch level changes. Patch version MUST be reset to 0 when minor version is incremented.
意味着如果你在1.1.0,然后你想发布一堆补丁级别的变化,你可能会碰到1.2.0 如果你在 1.1.23 并且想要发布下一个次要版本,那么你必须重置补丁,1.2.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.