symfony / orm-pack

A Symfony Pack for Doctrine ORM
MIT License
1.82k stars 18 forks source link

PHP 8.0.0 Installation failed #32

Closed racile closed 3 years ago

racile commented 3 years ago

I did a fresh install of symfony using PHP 7.4.13 then the symfony/orm-pack without a problem, I replicated the same using PHP 8.0.0 but encountered an error:

# composer require symfony/orm-pack
Using version ^2.0 for symfony/orm-pack
./composer.json has been updated
Running composer update symfony/orm-pack
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "5.2.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - doctrine/doctrine-migrations-bundle[dev-2.2.x-merge-up-into-3.0.x_5f12ade8acaa06.99463690, v2.0.0-alpha1, ..., 2.2.x-dev] require php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
    - doctrine/doctrine-migrations-bundle[dev-manager-loader, dev-container-aware-migration-factory, 3.0.0-alpha.1, ..., 3.1.x-dev] require php ^7.2 -> your php version (8.0.0) does not satisfy that requirement.
    - doctrine/doctrine-migrations-bundle[1.0.x-dev, ..., 1.3.x-dev] require symfony/framework-bundle ~2.7|~3.3|~4.0 -> found symfony/framework-bundle[v2.7.0-BETA1, ..., 2.8.x-dev, v3.3.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (5.2.*).
    - doctrine/doctrine-migrations-bundle[1.0.1, ..., 1.2.x-dev] require symfony/framework-bundle ~2.3|~3.0 -> found symfony/framework-bundle[v2.3.0, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but it conflicts with your root composer.json require (5.2.*).
    - doctrine/doctrine-migrations-bundle[1.0.0-BETA2, ..., 1.0.0] require symfony/framework-bundle ~2.1 -> found symfony/framework-bundle[v2.1.0, ..., 2.8.x-dev] but it conflicts with your root composer.json require (5.2.*).
    - __root__ is present at version dev-master and cannot be modified by Composer
    - doctrine/doctrine-migrations-bundle v1.0.0-beta1 requires symfony/symfony >=2.0 -> satisfiable by symfony/symfony[v5.2.0-BETA1, ..., 5.2.x-dev].
    - symfony/orm-pack v2.0.0 requires doctrine/doctrine-migrations-bundle * -> satisfiable by doctrine/doctrine-migrations-bundle[dev-manager-loader, dev-container-aware-migration-factory, dev-2.2.x-merge-up-into-3.0.x_5f12ade8acaa06.99463690, v1.0.0-beta1, ..., 1.3.x-dev, v2.0.0-alpha1, ..., 2.2.x-dev, 3.0.0-alpha.1, ..., 3.1.x-dev].
    - __root__ dev-master conflicts with symfony/symfony v5.2.0.
    - __root__ dev-master conflicts with symfony/symfony v5.2.0-RC2.
    - __root__ dev-master conflicts with symfony/symfony v5.2.0-RC1.
    - __root__ dev-master conflicts with symfony/symfony v5.2.0-BETA3.
    - __root__ dev-master conflicts with symfony/symfony v5.2.0-BETA2.
    - __root__ dev-master conflicts with symfony/symfony v5.2.0-BETA1.
    - __root__ dev-master conflicts with symfony/symfony 5.2.x-dev.
    - Root composer.json requires symfony/orm-pack ^2.0 -> satisfiable by symfony/orm-pack[v2.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
 # symfony console about
 -------------------- ---------------------------------
  Symfony
 -------------------- ---------------------------------
  Version              5.2.0
  Long-Term Support    No
  End of maintenance   07/2021 (in +240 days)
  End of life          07/2021 (in +240 days)
 -------------------- ---------------------------------
  Kernel
 -------------------- ---------------------------------
  Type                 App\Kernel
  Environment          dev
  Debug                true
  Charset              UTF-8
  Cache directory      ./var/cache/dev (253 KiB)
  Build directory      ./var/cache/dev (253 KiB)
  Log directory        ./var/log (0 B)
 -------------------- ---------------------------------
  PHP
 -------------------- ---------------------------------
  Version              8.0.0
  Architecture         64 bits
  Intl locale          en_PH
  Timezone             UTC (2020-12-03T18:47:21+00:00)
  OPcache              true
  APCu                 false
  Xdebug               false
 -------------------- ---------------------------------
fabpot commented 3 years ago

That's because Doctrine is not yet compatible with PHP 8.

leon-zadravec commented 3 years ago

Since doctrine got an update for PHP 8 support (https://github.com/doctrine/orm/releases/tag/2.8.0) is it possible to update this package too?

nicolas-grekas commented 3 years ago

This package is already compatible with php8. Btw, you should unpack it!

leon-zadravec commented 3 years ago

When I'm calling composer require symfony/orm-pack I still get the same error as racile here

nicolas-grekas commented 3 years ago

Sure you do, because of doctrine/doctrine-migrations-bundle which is not yet compatible with php8.