hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
939 stars 560 forks source link

Cannot install Drupal Console while using Drush 11.0.6 or higher #4332

Open beunerd opened 2 years ago

beunerd commented 2 years ago

Starting with this version of drush there's a dependency on v2 of consolidation/config which is a project that Drupal Console ultimately depends on and which can only use v1:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - dflydev/dot-access-configuration[v1.0.0-BETA1, ..., 1.0.x-dev] require dflydev/dot-access-data 1.* -> found dflydev/dot-access-data[v1.0.0, v1.0.1, v1.1.0] but these were not loaded, likely because it conflicts with another require.
    - drupal/console 1.9.8 requires drupal/console-core 1.9.7 -> satisfiable by drupal/console-core[1.9.7].
    - drupal/console-core 1.9.7 requires dflydev/dot-access-configuration ^1.0 -> satisfiable by dflydev/dot-access-configuration[v1.0.0-BETA1, ..., 1.0.x-dev].
    - Root composer.json requires drupal/console 1.9.8 -> satisfiable by drupal/console[1.9.8].
LOBsTerr commented 1 year ago

It is strange I just install drush/drush 11.1.1, together with drupal/console 1.9.8 and consolidation/config 2.0.6. I didn't face any issue. It looks like, there is a problem with dflydev/dot-access-data. Maybe you have something else conflicting with version ?

LOBsTerr commented 1 year ago

I found, it happens, because of https://github.com/dflydev/dflydev-dot-access-data/releases

A new release was introduced, but DC core depends on version 1.

I am looking for a solution

LOBsTerr commented 1 year ago

The problem is in drupal-composer/drupal-project, which bring dependency on https://github.com/grasmash/expander, which requires dflydev/dot-access-data:^3.0

And drupal/console require dflydev/dot-access-data:^1.0

zoiosilva commented 1 year ago

This issue must be fixed fist, so then we can composer update this repo and fix this issue.