Doctrine的Symfony Bundle存储库发生了什么


What happened to Doctrine's Symfony Bundle repos?

我只是花了最后 2 个小时想知道为什么当我对我的项目进行垃圾箱/供应商更新时一切都坏了。我收到以下错误

致命:github.com/symfony/DoctrineMigrationsBundle.git/info/refs 未找到:您是否在服务器上运行了 git update-server-info?

致命:github.com/symfony/DoctrineMongoDBBundle.git/info/refs 找不到:您是否在服务器上运行了 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

经过一番调查,我看到捆绑包的回购位置已更改为 github.com/doctrine/。我不得不更改 deps 位置并从供应商/捆绑包/Symfony/Bundle/中删除捆绑包,但它确实让我感到困惑。

我根本找不到任何关于此的文档,除了奇怪的 git diff 和 DoctrineFixturesBundle 自述文件中的一个小提及。这不是非BC的变化吗?这不会影响使用这些存储库的每个人吗?如果这是非BC更改,为什么没有有关它的更多信息。我是唯一受影响的人吗?还是我做错了什么(供应商更新而不是安装)?

我看到在这些项目的主分支中,命名空间也在发生变化。这不是一个巨大的非BC变化吗?我担心将来当我即将启动一个网站时可能会发生这种情况,而我似乎对此无能为力。

对我们来说(使用 Symfony 2.0.4),它的工作原理是更改 deps 中的 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.0

AppKernel.php看起来仍然是一样的:

new Symfony'Bundle'DoctrineFixturesBundle'DoctrineFixturesBundle(),
new Symfony'Bundle'DoctrineMigrationsBundle'DoctrineMigrationsBundle(),

另外,请确保您仍然在自动加载中注册了 DoctrineBundles.php:

'Symfony''Bundle''DoctrineFixturesBundle' => __DIR__.'/../vendor/bundles',
'Symfony''Bundle''DoctrineMigrationsBundle' => __DIR__.'/../vendor/bundles',

这发生在很久以前: 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