我在更新当前的symfony 2版本(从2.0.12到2.0.15)时遇到致命错误。
这里的错误:
> Installing/Updating doctrine-fixtures
HEAD is now at bed8908 Update README.md
> Installing/Updating DoctrineFixturesBundle
fatal: https://github.com/symfony/DoctrineFixturesBundle.git/info/refs not found: did you run git update-server-info on the server?
PS:我已经完成了git update-server-info
命令。但是什么都没有...
这是我的部门文件
[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git
[DoctrineFixturesBundle]
git=http://github.com/doctrine/DoctrineFixturesBundle.git
target=bundles/Symfony/Bundle/DoctrineFixturesBundle
version=origin/2.0
和我的 deps.lock 文件
doctrine-fixtures bed8908ae929562317e5c59dc0bee24f3b63067e
我今天注意到了同样的事情。
需要注意的关键是,这个问题与 DoctrineFixturesBundle 有关(注意/symfony 而不是/doctrine)
如果您检查 2.0 分支的最新更改,您将看到他们已将其更改为指向正确的存储库。
我最终不得不从我的供应商目录中删除bundles/Symfony/Bundle/DoctrineFixturesBundle
并重新运行php bin/vendors install
.
我现在可以运行垃圾箱/供应商安装而不会引发致命的。
你必须更新你的deps文件。
改变:
[DoctrineFixturesBundle]
git=http://github.com/symfony/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
到:
[DoctrineFixturesBundle]
git=http://github.com/doctrine/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
然后,运行:
bin/vendors install
它应该只安装缺少的捆绑包。
我已经找到了解决方案:
- 感谢之前的回答,将DoctrinerFixtureBundle删除到您的存储库中
- 其次,运行
php bin/vendors reinstall
重新安装供应商将是对我的情况产生影响的命令......