1

我的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",
4

1 回答 1

1

问题是新的熊/包在版本中引入了一个要求,这是您的最低稳定性或要求所不允许的,因此无法安装该包。composer/installersdev-master

如果您添加"composer/installers":"@dev"到您的需求或"minimum-stability":"dev"顶层,它也应该为此包选择自定义 git 存储库。

于 2013-10-22T09:04:58.973 回答