4

プロジェクトでビン/ベンダーの更新を行ったときに、なぜすべてが壊れたのか疑問に思って、最後の2時間を費やしました。次のエラーが発生していました

致命的:github.com/symfony/DoctrineMigrationsBundle.git/info/refs not found:サーバーでgit update-server-infoを実行しましたか?

致命的:github.com/symfony/DoctrineMongoDBBundle.git/info/refs not found:サーバーでgit update-server-infoを実行しましたか?

致命的:github.com/symfony/DoctrineFixturesBundle.git/info/refs not found:サーバーで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の場所を変更し、vendors / bundles / Symfony / Bundle /からバンドルを削除する必要がありましたが、それは確かに私を混乱させました。

奇妙なgitdiffとDoctrineFixturesBundleのreadmeでの小さな言及を除いて、これに関するドキュメントはまったく見つかりません。これはBC以外の変更ではありませんか?これは、それらのリポジトリを使用するすべての人に影響しませんか?BC以外の変更である場合、それに関する詳細情報がないのはなぜですか。影響を受けるのは私だけですか?または、何か間違ったことをしましたか(ベンダーはインストールではなく更新します)?

これらのプロジェクトのマスターブランチでは、名前空間も変更されていることがわかります。これはBC以外の大規模な変更ではありませんか?将来、サイトを立ち上げようとしているときにこれが発生する可能性があるのではないかと心配していますが、それについてできることはあまりないようです。

4

2 に答える 2

3

私たち(Symfony 2.0.4を使用)では、depsでgit-urlを変更し、ブランチ2.0を追跡するように設定するだけで機能しました。このアプローチを選択する場合は、AppKernel.phpのパスをDoctrine名前空間に適合させてはなりません(!)。私たちのdepsは今このように見えます:

[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(),

また、Autoload.phpにDoctrineBundlesがまだ登録されていることを確認してください。

'Symfony\\Bundle\\DoctrineFixturesBundle' => __DIR__.'/../vendor/bundles',
'Symfony\\Bundle\\DoctrineMigrationsBundle' => __DIR__.'/../vendor/bundles',
于 2012-06-04T11:29:54.493 に答える
2

これはかなり前に起こりました: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-01T01:59:14.683 に答える