作曲家不首先寻找替代的VCS / Git Repo

时间:2013-10-22 07:01:39

标签: composer-php

我的composer.json中有以下内容,对于熊/包,它正在拾取备用git仓库,但不适用于熊/骨架。对于熊/骨架,它从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",

1 个答案:

答案 0 :(得分:1)

问题是版本composer/installers中的dev-master上的新版本承包/ introduced a require,您的最低稳定性或要求是不允许的,因此无法安装软件包。

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