Easyadminbundle: [EAB 3] Fresh installation fails on Symfony 5.x due to Doctrine version

Created on 26 Aug 2020  路  3Comments  路  Source: EasyCorp/EasyAdminBundle

Describe the bug
I'm failing creating a new Symfony project because of dependency constraints, would it be a problem to require both Doctrine ^3.0 and ^2.8?

I get compatibility issues with both Symfony 5.0 and 5.1. 4.4 installs fine is also broken.

To Reproduce

> $ symfony local:new --full eab3-test
* Creating a new Symfony project with Composer
  (running /usr/local/bin/composer create-project symfony/website-skeleton /Users/marco/Downloads/eab3-test)

* Setting up the project under Git version control
  (running git init /Users/marco/Downloads/eab3-test)


 [OK] Your project is now ready in /Users/marco/Downloads/eab3-test             


> $ cd eab3-test/
> $ composer require admin
Using version ^3.1 for easycorp/easyadmin-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.1.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install easycorp/easyadmin-bundle v3.1.3
    - Conclusion: don't install easycorp/easyadmin-bundle v3.1.2
    - Conclusion: don't install easycorp/easyadmin-bundle v3.1.1
    - Conclusion: remove doctrine/common 3.0.2
    - Installation request for easycorp/easyadmin-bundle ^3.1 -> satisfiable by easycorp/easyadmin-bundle[v3.1.0, v3.1.1, v3.1.2, v3.1.3].
    - Conclusion: don't install doctrine/common 3.0.2
    - easycorp/easyadmin-bundle v3.1.0 requires doctrine/common ^2.8 -> satisfiable by doctrine/common[2.12.0, 2.13.0, 2.13.1, 2.13.2, 2.13.3, v2.10.0, v2.11.0, v2.8.0, v2.8.1, v2.9.0].
    - Can only install one of: doctrine/common[2.12.0, 3.0.2].
    - Can only install one of: doctrine/common[2.13.0, 3.0.2].
    - Can only install one of: doctrine/common[2.13.1, 3.0.2].
    - Can only install one of: doctrine/common[2.13.2, 3.0.2].
    - Can only install one of: doctrine/common[2.13.3, 3.0.2].
    - Can only install one of: doctrine/common[v2.11.0, 3.0.2].
    - Can only install one of: doctrine/common[v2.10.0, 3.0.2].
    - Can only install one of: doctrine/common[v2.8.0, 3.0.2].
    - Can only install one of: doctrine/common[v2.8.1, 3.0.2].
    - Can only install one of: doctrine/common[v2.9.0, 3.0.2].
    - Installation request for doctrine/common (locked at 3.0.2) -> satisfiable by doctrine/common[3.0.2].


Installation failed, reverting ./composer.json to its original content.
bug

Most helpful comment

3698 shoud be fix this issue

All 3 comments

3698 shoud be fix this issue

Thank you for addressing the issue, I think that Javier is on vacation at the moment, so we may have to wait some days before the solution gets merged.

Fixed by #3698.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

devkbsc picture devkbsc  路  3Comments

shakaran picture shakaran  路  4Comments

BigMichi1 picture BigMichi1  路  3Comments

SirMishaa picture SirMishaa  路  3Comments

lukasluecke picture lukasluecke  路  3Comments