我的composer.json文件中包含以下内容,用于bear / package,它正在拾取替代的git repo,但是不用于bear / skeleton。对于bear / skeleton来说,它是从packagist获取主要的repo checkout da04548,而不是从github.com/mackstar帐户获取6b3bd0ae16。
有谁知道为什么这对一个仓库有效,而对另一种仓库无效?
提前致谢。
{
"name": "mackstar/spout",
"description":"A BEAR.Sunday based CMS",
"keywords":[
"PHP",
"CMS"
],
"authors":[
{
"name": "Richard McIntyre"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mackstar/BEAR.Skeleton"
},
{
"type": "vcs",
"url": "https://github.com/mackstar/BEAR.Package"
}
],
"require":{
"php":">=5.4.0",
"ext-curl":"*",
"bear/resource":"0.9.*",
"bear/skeleton":"dev-develop",
"bear/package":"dev-develop",
问题是新的bear / package在版本中引入了require on ,这是您的最低稳定性或要求所不允许的,因此无法安装该软件包。composer/installers
dev-master
如果您将其添加"composer/installers":"@dev"
到需求或"minimum-stability":"dev"
顶层,则也应为此程序包选择自定义git repo。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句