drupal-console icon indicating copy to clipboard operation
drupal-console copied to clipboard

Cannot install Drupal Console while using Drush 11.0.6 or higher

Open beunerd opened this issue 1 year ago • 4 comments

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].

beunerd avatar Jul 27 '22 14:07 beunerd

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 avatar Sep 15 '22 08:09 LOBsTerr

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 avatar Sep 16 '22 11:09 LOBsTerr

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

LOBsTerr avatar Sep 16 '22 12:09 LOBsTerr

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

zoiosilva avatar Dec 09 '22 14:12 zoiosilva