hechoendrupal / drupal-console-core

This project contains commands and features to be shared across DrupalConsole projects.
134 stars 69 forks source link

symfony/filesystem version 6 requires version 6 of symfony/config #396

Open MdNadimHossain opened 1 year ago

MdNadimHossain commented 1 year ago

Error

Problem 1
    - drupal/console 1.9.10 requires drupal/console-core ^1.9.8 -> satisfiable by drupal/console-core[1.9.8].
    - drupal/console 1.9.5 requires drupal/console-core 1.9.6 -> satisfiable by drupal/console-core[1.9.6].
    - drupal/console[1.9.7, ..., 1.9.9] require drupal/console-core 1.9.7 -> satisfiable by drupal/console-core[1.9.7].
    - drupal/console-core 1.9.8 requires symfony/config ~3.0|^4.4 -> satisfiable by symfony/config[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev].
    - drupal/console[1.0.0-alpha1, ..., 1.0.0-beta3] require symfony/filesystem ~2.8 -> found symfony/filesystem[v2.8.0-BETA1, ..., 2.8.x-dev] but it conflicts with your root composer.json require (^6.2).
    - drupal/console[1.0.0-beta4, ..., 1.0.0-beta5] require php ^5.6 || ^7.0 -> your php version (8.1.18) does not satisfy that requirement.
    - drupal/console[1.0.0-rc1, ..., 1.9.4] require php ^5.5.9 || ^7.0 -> your php version (8.1.18) does not satisfy that requirement.
    - drupal/console-core[1.9.6, ..., 1.9.7] require symfony/filesystem ~3.0|^4.4 -> found symfony/filesystem[v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^6.2).
    - symfony/config[v3.0.0-BETA1, ..., 3.3.x-dev] require symfony/filesystem ~2.8|~3.0 -> found symfony/filesystem[v2.8.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev] but it conflicts with your root composer.json require (^6.2).
    - symfony/config[v3.4.0-BETA1, ..., 3.4.x-dev] require symfony/filesystem ~2.8|~3.0|~4.0 -> found symfony/filesystem[v2.8.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^6.2).
    - symfony/config[v4.4.0-BETA1, ..., v4.4.8] require php ^7.1.3 -> your php version (8.1.18) does not satisfy that requirement.
    - symfony/config[v4.4.9, ..., 4.4.x-dev] require symfony/filesystem ^3.4|^4.0|^5.0 -> found symfony/filesystem[v3.4.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but it conflicts with your root composer.json require (^6.2).
    - Root composer.json requires drupal/console ^1.0 -> satisfiable by drupal/console[1.0.0-alpha1, ..., 1.9.10].

Issue

Root composer allows symfony/filesystem version 6, but it only allows "~3.0|^4.4" of symfony/config, which conflicts with the symfony/filesystem requirement.

Solution

The root composer has - "symfony/filesystem": "^4.4.9 || ^5 || ^6" So it should allow version 5 and 6 of symfony/config as well to resolve the conflict

MdNadimHossain commented 1 year ago

I have created this pull request from fork - https://github.com/hechoendrupal/drupal-console-core/pull/397