英文:
What does "exp" respresent in "exp.sha.5114f85" of Sematic Versioning examples?
问题
我正在审查 语义版本规范 中关于构建元数据的部分,注意到在有效版本的示例中出现了 "exp.sha.5114f85":
示例:1.0.0-alpha+001, 1.0.0+20130313144700, 1.0.0-beta+exp.sha.5114f85, 1.0.0+21AF26D3----117B344092BD。
我理解 "sha" 用于表示紧随小数点分隔符的 "5114f85" 是提交哈希的前 7 个字符(短版本),但 "exp" 是什么意思呢?
我猜测可能是 "explicit",尽管我原本认为只使用 "1.0.0+21AF26D3" 或甚至 "1.0.0-beta+sha.5114f85" 已经足够清晰明了了...
英文:
I'm reviewing the semver specification on build metadata and noticed "exp.sha.5114f85" in the examples of valid versions:
> Examples: 1.0.0-alpha+001, 1.0.0+20130313144700,
> 1.0.0-beta+exp.sha.5114f85, 1.0.0+21AF26D3----117B344092BD.
I understand "sha" would be to signal that the "5114f85" following the dot separator is the first 7 chars (short version) of the commit hash but what is the "exp"?
I'm assuming "explicit" although I would've thought that just "1.0.0+21AF26D3" or even "1.0.0-beta+sha.5114f85" would have been sufficient/explicit enough...
答案1
得分: 0
根据我所知,它们只是示例字符串。规范对于可能与任何特定标签值相关联的含义或可能性不明确。该特定示例是在2.0.0-rc.1和2.0.0-rc.2之间的某处添加的,您可能会在其中一个仓库的拉取请求历史记录中找到关于该添加的讨论。
我只能在问题列表中找到关于该示例的少数引用,它们没有提到"exp"可能用于什么目的。
总的来说,您应该参考包/接口发布者的文档,了解他们可能正在应用的标签值的语义。SemVer规范仅规定了语法和排序规则,没有更多内容。
我怀疑它缩写为"explicit",但任何内容都有可能。在元标签中嵌入构建机器名称并不罕见。
英文:
To the best of my knowledge, they are just example strings. The spec is moot on the meaning that may or may not be associated with any particular tag value. That particular example was added somewhere between 2.0.0-rc.1 and 2.0.0-rc.2, you might find a discussion of that addition in the pull request history of one of their repos.
I can only find a handful of references to that example in the issues list and they do not mention what "exp" might be used for.
In general, you should refer to a package/interface publishers documentation wrt the semantics of any tag values they may be be applying. The SemVer spec only specifies the syntax and sort ordering rules, nothing more.
I doubt it is short for "explicit", but anything might hold. It's not uncommon to see the build machine name embedded in the meta tag.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论