Sorry to post here but composer is the worst thing ever happened to me in drupal. I was working with drush for ages and everything worked. Now every second time all explodes into errors and dependency mega fail.
I have a clean drupal set up and just want to install the "ctools development version". I am not sure if that has to do with the package or anything, so i appreciate any help or hint.
The problem
"composer require drupal/ctools:3.x-dev"
./composer.json has been updated
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/ctools_block 3.2.0 requires drupal/ctools 3.2.0 -> satisfiable by drupal/ctools[3.2.0] but these conflict with your requirements or minimum-stability.
- drupal/ctools_block 3.2.0 requires drupal/ctools 3.2.0 -> satisfiable by drupal/ctools[3.2.0] but these conflict with your requirements or minimum-stability.
- drupal/ctools_block 3.2.0 requires drupal/ctools 3.2.0 -> satisfiable by drupal/ctools[3.2.0] but these conflict with your requirements or minimum-stability.
- Installation request for drupal/ctools_block (locked at 3.2.0) -> satisfiable by drupal/ctools_block[3.2.0].
Comments
Comment #2
mortona2k commentedI was able to recreate these errors.. It looks like you have ctools_block in your composer.json required as "3.2", and then tried to require ctools "3.x-dev".
I'm not too sure what composer was trying to do here. Ctools_block is a standalone module for D7 and a module in ctools d8. Looks like requiring it in a d8 site will actually grab ctools.
Comment #3
marcoka commentedHm i never did a compass require drupal/ctools_block. That would add an entry.
I also have no entry for ctools_block.
But i gave up and copied it manually. Composer is hell for me and i know it for years. Always trouble with simple tasks.
Comment #4
joelpittetTry this
composer why drupal/ctools_blockI find this helps me sort things better than the error messages do... and it's opposite
composer why-not PACKAGE/PROJECTComment #5
joelpittetAlso I feel your pain sometimes too, but patches in composer make up for it's annoyances (which with time you will get used to...)
https://github.com/cweagans/composer-patches
Comment #6
joelpittetAssuming you figured out I'm closing this issue.