作曲家-安装github fork / branch

西蒙·哈布(Simon Hab)

为什么作曲家无法从https://github.com/wimvds/DoctrineMigrationsBundle/tree/feature/multiple-em-support安装分支

我的composer.json:

"repositories": [
    {
        "type":"package",
        "package": {
          "name": "doctrine/doctrine-migrations-bundle",
          "version":"master",
          "source": {
              "url": "https://github.com/wimvds/DoctrineMigrationsBundle.git",
              "type": "git",
              "reference":"master"
            }
        }
    }
],
"require": {
(...)
        "doctrine/migrations": "1.0.*@dev",
        "doctrine/doctrine-migrations-bundle": "dev-feature/multiple-em-support",
(...)
}.

错误:

composer update

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package doctrine/doctrine-migrations-bundle dev-feature/multiple-em-support could not be found.

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.

没有“包”的简化器方式起作用:

"repositories": [
    {
      "url": "https://github.com/wimvds/DoctrineMigrationsBundle.git",
      "type": "git"
    }
],
Smashou

试试这个

"repositories": [
{

      "source": {
          "url": "https://github.com/wimvds/DoctrineMigrationsBundle",
          "type": "git",
        }
    }
}
],
"require": {
(...)
    "doctrine/migrations": "1.0.*@dev",
    "doctrine/doctrine-migrations-bundle": "dev-feature/multiple-em-support",
(...)
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章