如何使用 Composer 将代码标记为稳定?
我最近遇到了 composer 的变化,这意味着默认 minimum-stability
是 stable
,而不是将其设置为 dev
我想将我的一些库标记为稳定.
I've recently come across the change in composer meaning that the default minimum-stability
is stable
, and rather than set this to dev
I'd like to mark some of my libraries as stable.
我实际上使用了两个相关的分支,release
和 dev
从 master
分支.每隔一段时间就会有一些东西被合并到 release
并标记为新版本.
I actually use two relevant branches, release
and dev
branched from master
. Every so often something is merged into release
and tagged as new version.
composer 如何确定我的库的稳定性,是否有分支命名约定、版本号、composer.json 中的键?
How does composer determine the stability of my libraries, is there a naming convention for branches, version nums, a key in composer.json?
谢谢
推荐答案
答案是:标签.如果您不想使用标签,您也可以使用 别名.但值得一提的是,您应该只在您的软件包稳定时将其标记为稳定,而不是让其他人相信它们是稳定的.
The answer is: Tags. Your may also use Alias, if you don't want to use tags. But it's worth to mention, that you should only mark your packages as stable, when they are stable and not to make others believe they are.
更新:另一个链接:稳定性
相关文章