acquia / blt

Acquia's toolset for automating Drupal 8 and 9 development, testing, and deployment.
https://docs.acquia.com/blt/
GNU General Public License v2.0
443 stars 397 forks source link

Adding Drupal console with composer fails. #2825

Closed kviolka closed 6 years ago

kviolka commented 6 years ago

My system information:

Output of blt doctor:

| Property                  | Value                                                        |
+---------------------------+--------------------------------------------------------------+
| %paths.%root              | /home/k4v/dev/vit-accounting/docroot                         |
| %paths.%site              | sites/default                                                |
| %paths.%modules           | sites/all/modules                                            |
| %paths.%themes            | sites/all/themes                                             |
| %paths.%config-sync       | /home/k4v/dev/vit-accounting/config/default                  |
| %paths.%files             | sites/default/files                                          |
| %paths.%temp              | /tmp                                                         |
| %paths.%private           | /home/k4v/dev/vit-accounting/files-private                   |
| admin-theme               | seven                                                        |
| alias-searchpaths.0       | /home/k4v/dev/vit-accounting/drush/sites                     |
| blt-version               | 9.0.5                                                        |
| bootstrap                 | Successful                                                   |
| composer-version          | Composer version 1.6.3 2018-01-31 16:28:17                   |
| config-sync               | /home/k4v/dev/vit-accounting/config/default                  |
| db-driver                 | mysql                                                        |
| db-hostname               | localhost                                                    |
| db-name                   | vitaccounting                                                |
| db-password               | kekse                                                        |
| db-port                   | 3306                                                         |
| db-status                 | Connected                                                    |
| db-username               | admin                                                        |
| drupal-settings-file      | sites/default/settings.php                                   |
| drupal-version            | 8.5.3                                                        |
| drush-alias-files.0       | /home/k4v/dev/vit-accounting/drush/sites/local.site.yml      |
| drush-conf.0              | /home/k4v/dev/vit-accounting/vendor/drush/drush/drush.yml    |
| drush-conf.1              | /home/k4v/dev/vit-accounting/drush/drush.yml                 |
| drush-conf.2              | /home/k4v/dev/vit-accounting/docroot/sites/default/local.dru |
|                           | sh.yml                                                       |
| drush-script              | /home/k4v/dev/vit-accounting/vendor/bin/drush                |
| drush-temp                | /tmp                                                         |
| drush-version             | 9.2.3                                                        |
| files                     | sites/default/files                                          |
| install-profile           | minimal                                                      |
| modules                   | sites/all/modules                                            |
| php-bin                   | /usr/bin/php7.1                                              |
| php-conf.0                | /etc/php/7.1/cli/php.ini                                     |
| php-os                    | Linux                                                        |
| private                   | /home/k4v/dev/vit-accounting/files-private                   |
| root                      | /home/k4v/dev/vit-accounting/docroot                         |
| site                      | sites/default                                                |
| stacks.drupal-vm.inited   | false                                                        |
| stacks.dev-desktop.inited | false                                                        |
| temp                      | /tmp                                                         |
| theme                     | bartik                                                       |
| themes                    | sites/all/themes                                             |
| uri                       | http://local.blted8.com                                      |
+---------------------------+--------------------------------------------------------------+

When I run this command:


I get the following output:
```    1/3: http://packagist.org/p/provider-latest$13143feacff78a0a251edec117f178d9514299c2ff588c890768adbf2570c75f.json
    2/3:    http://packagist.org/p/provider-2018-04$c96604746522c51f57f204ec894582a45aaf837dbe0d2b5b1d79ed3ba22ee78e.json
    3/3:    http://packagist.org/p/provider-2018-01$b8258b95ad0569f22375fab8e10beee5e68f37db1b8c5eb7e9ee9386ed7ab9fe.json
    Finished: success: 3, skipped: 0, failure: 0, total: 3
./composer.json has been updated
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/console 1.8.0 requires drupal/console-core 1.8.0 -> satisfiable by drupal/console-core[1.8.0].
    - Conclusion: don't install drupal/console-core 1.8.0
    - drupal/console 1.7.0 requires drupal/console-core 1.7.0 -> satisfiable by drupal/console-core[1.7.0].
    - Conclusion: don't install drupal/console-core 1.7.0
    - drupal/console 1.6.1 requires drupal/console-core 1.6.1 -> satisfiable by drupal/console-core[1.6.1].
    - Conclusion: don't install drupal/console-core 1.6.1
    - drupal/console 1.6.0 requires drupal/console-core 1.6.0 -> satisfiable by drupal/console-core[1.6.0].
    - Conclusion: don't install drupal/console-core 1.6.0
    - drupal/console 1.5.0 requires drupal/console-core 1.5.0 -> satisfiable by drupal/console-core[1.5.0].
    - Conclusion: don't install drupal/console-core 1.5.0
    - drupal/console 1.4.0 requires drupal/console-core 1.4.0 -> satisfiable by drupal/console-core[1.4.0].
    - Conclusion: don't install drupal/console-core 1.4.0
    - drupal/console 1.3.2 requires drupal/console-core 1.3.2 -> satisfiable by drupal/console-core[1.3.2].
    - Conclusion: don't install drupal/console-core 1.3.2
    - drupal/console 1.3.1 requires drupal/console-core 1.3.1 -> satisfiable by drupal/console-core[1.3.1].
    - Conclusion: don't install drupal/console-core 1.3.1
    - drupal/console 1.3.0 requires drupal/console-core 1.3.0 -> satisfiable by drupal/console-core[1.3.0].
    - Conclusion: don't install drupal/console-core 1.3.0
    - drupal/console 1.2.0 requires drupal/console-core 1.2.0 -> satisfiable by drupal/console-core[1.2.0].
    - Conclusion: don't install drupal/console-core 1.2.0
    - drupal/console 1.1.1 requires drupal/console-core 1.1.1 -> satisfiable by drupal/console-core[1.1.1].
    - Conclusion: don't install drupal/console-core 1.1.1
    - drupal/console 1.1.0 requires drupal/console-core 1.1.0 -> satisfiable by drupal/console-core[1.1.0].
    - Conclusion: don't install drupal/console-core 1.1.0
    - drupal/console 1.0.2 requires drupal/console-core 1.0.2 -> satisfiable by drupal/console-core[1.0.2].
    - Conclusion: don't install drupal/console-core 1.0.2
    - drupal/console 1.0.1 requires drupal/console-core 1.0.1 -> satisfiable by drupal/console-core[1.0.1].
    - Conclusion: don't install drupal/console-core 1.0.1
    - drupal/console 1.0.0 requires drupal/console-core 1.0.0 -> satisfiable by drupal/console-core[1.0.0].
    - drupal/console 1.0.0-rc20 requires drupal/console-core 1.0.0-rc20 -> satisfiable by drupal/console-core[1.0.0-rc20].
    - drupal/console 1.0.0-rc21 requires drupal/console-core 1.0.0-rc21 -> satisfiable by drupal/console-core[1.0.0-rc21].
    - drupal/console 1.0.0-rc22 requires drupal/console-core 1.0.0-rc22 -> satisfiable by drupal/console-core[1.0.0-rc22].
    - drupal/console 1.0.0-rc23 requires drupal/console-core 1.0.0-rc23 -> satisfiable by drupal/console-core[1.0.0-rc23].
    - drupal/console 1.0.0-rc24 requires drupal/console-core 1.0.0-rc24 -> satisfiable by drupal/console-core[1.0.0-rc24].
    - drupal/console 1.0.0-rc25 requires drupal/console-core 1.0.0-rc25 -> satisfiable by drupal/console-core[1.0.0-rc25].
    - drupal/console 1.0.0-rc26 requires drupal/console-core 1.0.0-rc26 -> satisfiable by drupal/console-core[1.0.0-rc26].
    - drupal/console-core 1.0.0 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc20 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc21 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc22 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc23 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc24 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc25 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - drupal/console-core 1.0.0-rc26 requires webflo/drupal-finder ^0.3.0 -> satisfiable by webflo/drupal-finder[0.3.0].
    - Conclusion: don't install webflo/drupal-finder 0.3.0
    - Conclusion: don't install drupal/console 1.0.0-rc19
    - Conclusion: don't install drupal/console 1.0.0-rc18
    - Conclusion: don't install drupal/console 1.0.0-rc17
    - drupal/console 1.0.0-rc15 requires doctrine/collections 1.3.0 -> satisfiable by doctrine/collections[v1.3.0].
    - drupal/console 1.0.0-rc16 requires doctrine/collections 1.3.0 -> satisfiable by doctrine/collections[v1.3.0].
    - Conclusion: don't install doctrine/collections v1.3.0
    - Conclusion: don't install drupal/console 1.0.0-rc14
    - Conclusion: don't install drupal/console 1.0.0-rc13
    - Conclusion: don't install drupal/console 1.0.0-rc12
    - Conclusion: don't install drupal/console 1.0.0-rc11
    - Conclusion: don't install drupal/console 1.0.0-rc10
    - Conclusion: don't install drupal/console 1.0.0-rc9
    - Conclusion: don't install drupal/console 1.0.0-rc8
    - Conclusion: don't install drupal/console 1.0.0-rc7
    - Conclusion: don't install drupal/console 1.0.0-rc6
    - Conclusion: don't install drupal/console 1.0.0-rc5
    - Conclusion: don't install drupal/console 1.0.0-rc4
    - Conclusion: don't install drupal/console 1.0.0-rc3
    - Conclusion: don't install drupal/console 1.0.0-rc2
    - Conclusion: don't install drupal/console 1.0.0-rc1
    - Conclusion: don't install drupal/console 1.0.0-beta5
    - Conclusion: don't install drupal/console 1.0.0-beta4
    - Conclusion: don't install drupal/console 1.0.0-beta3
    - Conclusion: don't install drupal/console 1.0.0-beta2
    - Conclusion: don't install drupal/console 1.0.0-beta1
    - Conclusion: don't install drupal/console 1.0.0-alpha2
    - Conclusion: remove symfony/config v3.4.9
    - Installation request for symfony/debug (locked at v4.0.9) -> satisfiable by symfony/debug[v4.0.9].
    - Installation request for webflo/drupal-finder (locked at 1.1.0) -> satisfiable by webflo/drupal-finder[1.1.0].
    - Installation request for doctrine/collections (locked at v1.5.0) -> satisfiable by doctrine/collections[v1.5.0].
    - Installation request for doctrine/annotations (locked at v1.6.0) -> satisfiable by doctrine/annotations[v1.6.0].
    - Installation request for drupal/console ^1 -> satisfiable by drupal/console[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.0-beta3, 1.0.0-beta4, 1.0.0-beta5, 1.0.0-rc1, 1.0.0-rc10, 1.0.0-rc11, 1.0.0-rc12, 1.0.0-rc13, 1.0.0-rc14, 1.0.0-rc15, 1.0.0-rc16, 1.0.0-rc17, 1.0.0-rc18, 1.0.0-rc19, 1.0.0-rc2, 1.0.0-rc20, 1.0.0-rc21, 1.0.0-rc22, 1.0.0-rc23, 1.0.0-rc24, 1.0.0-rc25, 1.0.0-rc26, 1.0.0-rc3, 1.0.0-rc4, 1.0.0-rc5, 1.0.0-rc6, 1.0.0-rc7, 1.0.0-rc8, 1.0.0-rc9, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.7.0, 1.8.0].
    - Conclusion: don't install symfony/config v3.4.9
    - drupal/console 1.0.0-alpha1 requires symfony/finder ~2.8 -> satisfiable by symfony/finder[2.8.x-dev, v2.8.0, v2.8.0-BETA1, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, v2.8.26, v2.8.27, v2.8.28, v2.8.29, v2.8.3, v2.8.30, v2.8.31, v2.8.32, v2.8.33, v2.8.34, v2.8.35, v2.8.36, v2.8.37, v2.8.38, v2.8.39, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - symfony/finder 2.8.x-dev conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.0 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.0-BETA1 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.1 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.10 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.11 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.12 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.13 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.14 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.15 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.16 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.17 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.18 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.19 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.2 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.20 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.21 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.22 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.23 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.24 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.25 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.26 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.27 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.28 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.29 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.3 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.30 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.31 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.32 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.33 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.34 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.35 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.36 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.37 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.38 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.39 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.4 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.5 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.6 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.7 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.8 conflicts with symfony/config[v3.4.9].
    - symfony/finder v2.8.9 conflicts with symfony/config[v3.4.9].
    - Installation request for symfony/config (locked at v3.4.9) -> satisfiable by symfony/config[v3.4.9].

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

And I expected this to happen:

Drupal console should be installed.
kviolka commented 6 years ago

I tried this on a fresh setup.

kviolka commented 6 years ago

I found the solution Some symfony components were installed from v4.0, that conflicts with the requirement of drupal/console-core.

Solution for me was to downgrade the packages:

composer require symfony/debug:~3.0 composer require symfony/dom-crawler:~3.0

After that I could add drupal/console fine.

mikemadison13 commented 6 years ago

thanks for the info!

fbray commented 6 years ago

The solution from @kviolka (downgrading two packages) worked for me. It would be great to resolve these dependencies within BLT.

Output from BLT doctor, in case it is useful:

www-data@a6ba96db0942:/app$ blt doctor
[warning] The xDebug extension is loaded. This will significantly decrease performance.
+---------------------------+--------------------------------------------+
| Property                  | Value                                      |
+---------------------------+--------------------------------------------+
| %paths.%root              | /app/docroot                               |
| %paths.%site              | sites/default                              |
| %paths.%modules           | sites/all/modules                          |
| %paths.%themes            | sites/all/themes                           |
| %paths.%config-sync       | /app/docroot/../config/default             |
| %paths.%files             | sites/default/files                        |
| %paths.%temp              | /tmp                                       |
| %paths.%private           | /app/files-private                         |
| admin-theme               | adminimal_theme                            |
| alias-searchpaths.0       | /app/drush/sites                           |
| blt-version               | 9.1.2                                      |
| bootstrap                 | Successful                                 |
| composer-version          | Composer version 1.6.5 2018-05-04 11:44:59 |
| config-sync               | /app/docroot/../config/default             |
| db-driver                 | mysql                                      |
| db-hostname               | database                                   |
| db-name                   | drupal8                                    |
| db-password               | drupal8                                    |
| db-port                   | 3306                                       |
| db-status                 | Connected                                  |
| db-username               | drupal8                                    |
| drupal-settings-file      | sites/default/settings.php                 |
| drupal-version            | 8.5.6                                      |
| drush-alias-files.0       | /app/drush/sites/cew.site.yml       |
| drush-conf.0              | /app/vendor/drush/drush/drush.yml          |
| drush-conf.1              | /app/drush/drush.yml                       |
| drush-conf.2              | /app/docroot/sites/default/local.drush.yml |
| drush-script              | /app/vendor/bin/drush                      |
| drush-temp                | /tmp                                       |
| drush-version             | 9.3.0                                      |
| files                     | sites/default/files                        |
| install-profile           | lightning                                  |
| modules                   | sites/all/modules                          |
| php-bin                   | /usr/local/bin/php                         |
| php-conf.1                | false                                      |
| php-os                    | Linux                                      |
| private                   | /app/files-private                         |
| root                      | /app/docroot                               |
| site                      | sites/default                              |
| stacks.drupal-vm.inited   | false                                      |
| stacks.dev-desktop.inited | false                                      |
| temp                      | /tmp                                       |
| theme                     | prism                                      |
| themes                    | sites/all/themes                           |
| uri                       | cew.lndo.site                            |
+---------------------------+--------------------------------------------+
featherbelly commented 5 years ago

If anyone else comes here and wants to know a swift solution, try this:

composer require drupal/console:~1.0 \
> --prefer-dist \
> --optimize-autoloader \
> --no-update

This will add the requirement to package.json, then run:

composer update

To resolve dependencies. MAGIC!

RakeshJamesAccess commented 5 years ago

This what I a getting vagrant@local:/var/www/web$ drupal drupal: command not found :(