在过去的两个小时里,当我对我的项目做了一个垃圾箱/供应商的更新时,我一直在想为什么所有的东西都坏了。我得到了以下错误
致命:没有找到github.com/symfony/DoctrineMigrationsBundle.git/info/refs :您在服务器上运行git更新服务器信息了吗? 致命:没有找到github.com/symfony/DoctrineMongoDBBundle.git/info/refs :您在服务器上运行git更新服务器信息了吗? 致命:没有找到github.com/symfony/DoctrineFixturesBundle.git/info/refs :您在服务器上运行git更新服务器信息了吗?
我和我的部下什么都没变
[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经过一些调查,我发现这些捆绑包的回购位置已经更改为github.com/主义/。我不得不更改did位置并从供应商/Bundle/Symfony/Bundle/删除捆绑包,但这确实使我感到困惑。
我找不到任何关于这方面的文档,除了奇怪的git和自述DoctrineFixturesBundle的自述之外。这不是非BC的零钱吗?这不影响所有使用这些回复的人吗?如果这是一个非BC的变化,为什么没有更多的信息。我是唯一受影响的吗?还是我做错了什么(供应商更新而不是安装)?
我看到,在这些项目的主分支中,名称空间也在发生变化。这不是一个大规模的非BC变化吗?我担心,这可能会发生在未来,当我即将推出一个网站,似乎没有什么我可以做的。
发布于 2012-06-01 01:59:14
这在很久以前就发生了:http://symfony.com/blog/symfony-2-1-the-doctrine-bundle-has-moved-to-the-doctrine-organization
他们为那些没有更新的人保留旧的回复。我不会说它真的是BC中断,因为它不是代码被更改,只是从哪里服务包的位置。
也许只是访问/订阅symfony博客和任何相关的twitter帐户。他们今天早些时候提到了这个删除:https://twitter.com/jmikola/status/207852349782368256
发布于 2012-06-04 11:29:54
对于我们(使用Symfony 2.0.4),它只需更改dep中的git-url并将其设置为跟踪分支2.0即可。如果选择这种方法,就不能(!)调整AppKernel.php中的路径以适应Doctrine命名空间。我们的代言人现在看起来是这样:
[DoctrineFixturesBundle]
git=https://github.com/doctrine/DoctrineFixturesBundle.git
target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
version=origin/2.0
[DoctrineMigrationsBundle]
git=https://github.com/doctrine/DoctrineMigrationsBundle.git
target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
version=origin/2.0AppKernel.php看起来仍然是一样的:
new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle(),另外,确保仍然在DoctrineBundles中注册了autoload.php:
'Symfony\\Bundle\\DoctrineFixturesBundle' => __DIR__.'/../vendor/bundles',
'Symfony\\Bundle\\DoctrineMigrationsBundle' => __DIR__.'/../vendor/bundles',https://stackoverflow.com/questions/10842562
复制相似问题