试图将包的特定分支包含在packagist中

时间:2014-05-03 15:33:07

标签: php composer-php

我试图使用repo的特定分支,但收到错误:

composer.json

{
    "name": "programmingarehard/arbiter",
    "license": "MIT",
    "type": "library",
    "description": "Convenience library to manipulate Symfony ACL's",
    "authors": [
        {
            "name": "David Adams",
            "email": "adams.david.10@gmail.com"
        }
    ],
    "autoload": {
        "psr-4": {
            "ProgrammingAreHard\\Arbiter\\": "src",
            "ProgrammingAreHard\\Arbiter\\Spec\\": "spec"
        }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/security": "2.4.*"
    },
    "require-dev": {
        "bestform/phpspec": "dev-psr4-support"
    },
    "config": {
        "bin-dir": "vendor/bin"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/bestform/phpspec"
        }
    ],
    "minimum-stability": "dev",
    "extra": {
        "branch-alias": {
            "dev-master": "1.0.x-dev"
        }
    }
}

错误:

Updating dependencies (including require-dev)           Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - The requested package bestform/phpspec could not be found in any version, there may be a typo in the package name.   Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.   Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

This是我试图进入我的包裹的回购/分支。不确定我做错了什么。

1 个答案:

答案 0 :(得分:0)

您使用的存储库不包含名为bestform/phpspec的软件。查看其中的composer.json,并使用给定的值作为“name”。它的phpspec/phpspec和任何分支只有在你使用该名称时才能找到。

Github存储库的名称无关紧要。不要将它与“作曲家”这个名字混淆。