webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
23 stars 3 forks source link

drowl-init-from-existing: Dev dependencies conflict with existing composer.json #65

Open JPustkuchen opened 2 years ago

JPustkuchen commented 2 years ago

For example for a composer.json with:

"drupal/core-composer-scaffold": "^9.2",
"drupal/core-recommended": "^9.2",

The result is (which I think is strange and I have no clue yet):

Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

  • drupal/core-dev[9.2.0-alpha1, ..., 9.4.x-dev] require symfony/css-selector ^4.4 -> found symfony/css-selector[v4.4.0-BETA1, ..., 4.4.x-dev] but the package is fixed to v5.3.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  • Root composer.json requires drupal/core-dev ^9.2 -> satisfiable by drupal/core-dev[9.2.0-alpha1, ..., 9.4.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/core-dev:*" to figure out if any version is installable, or "composer require drupal/core-dev:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content. composer [require --dev drupal/core-dev drush/drush phpunit/phpunit drupal/coder phpspec/prophecy-phpunit drupal/devel drupal/devel_debug_log drupal/devel_php] failed, composer command failed: exit status 2. stderr= "ddev composer require --dev drupal/core-dev drush/drush phpunit/phpunit drupal/coder phpspec/prophecy-phpunit drupal/devel drupal/devel_debug_log drupal/devel_php" command filed with exit code 1. Failed to run drowl-init-from-existing.sh ; error=exit status 1

JPustkuchen commented 1 year ago

Related: https://github.com/webksde/ddev-vscode-devcontainer-drupal-template/issues/124