试图包含包的特定分支,而不是在packagist上



我试图使用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.

这是我试图拉入我的包的repo/分支。不知道我做错了什么。

您正在使用的存储库不包含名为bestform/phpspec的软件。看看作曲家。Json,并使用给定的值作为"name"。它是phpspec/phpspec,并且只有当您使用该名称时才会找到任何分支。

Github存储库的名称无关紧要。不要把它和"composer"的名字搞混了

相关内容

  • 没有找到相关文章

最新更新