【发布时间】:2012-06-06 05:44:34
【问题描述】:
我刚刚花了两个小时想知道为什么当我对我的项目进行 bin/vendors 更新时一切都崩溃了。我收到以下错误
致命:github.com/symfony/DoctrineMigrationsBundle.git/info/refs 未找到:您是否在服务器上运行了 git update-server-info?
致命:github.com/symfony/DoctrineMongoDBBundle.git/info/refs not found:你在服务器上运行过 git update-server-info 吗?
致命:github.com/symfony/DoctrineFixturesBundle.git/info/refs 未找到:您是否在服务器上运行了 git update-server-info?
我的部门没有改变任何东西
[DoctrineMigrationsBundle]
git=http://github.com/symfony/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
[doctrine-migrations]
git=http://github.com/doctrine/migrations.git
[doctrine-fixtures]
git=http://github.com/doctrine/data-fixtures.git
[DoctrineFixturesBundle]
git=http://github.com/symfony/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
[doctrine-mongodb]
git=http://github.com/doctrine/mongodb.git
[doctrine-mongodb-odm]
git=http://github.com/doctrine/mongodb-odm.git
[DoctrineMongoDBBundle]
git=http://github.com/symfony/DoctrineMongoDBBundle.git
target=/bundles/Symfony/Bundle/DoctrineMongoDBBundle
version=v2.0.0
经过一番调查,我发现包的 repo 位置已更改为 github.com/doctrine/。我不得不更改 deps 位置并从 vendor/bundles/Symfony/Bundle/ 中删除捆绑包,但这确实让我感到困惑。
除了奇怪的 git diff 和 DoctrineFixturesBundle 的自述文件中的一个小提及之外,我根本找不到任何文档。这不是非 BC 变化吗?这不会影响使用这些存储库的每个人吗?如果是非 BC 更改,为什么没有更多信息。只有我受影响吗?还是我做错了什么(供应商更新而不是安装)?
我看到在这些项目的主分支中,命名空间也在发生变化。这不是大规模的非 BC 变化吗?我担心这可能会在我即将启动一个网站时发生,而我似乎对此无能为力。
【问题讨论】:
-
如果有其他人处于相同的情况,我还必须将 AppKernel 中的这些类更改为 "new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle()"、"new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle( )”。我还必须注册命名空间 "'Doctrine\\Bundle' => __DIR__.'/../vendor/bundles',"
-
我用于 DoctrineMongoDBBundle (v2.0.1) 的当前标签没有改变它的命名空间,所以它应该留在 bundles/Symfony/Bundle 目录中
标签: php symfony doctrine-orm bundles