shaal / DrupalPod

Start Drupal contributions with 1 click.
https://shaal.github.io/DrupalPod
MIT License
163 stars 54 forks source link

Composer requirement error using Drupal 10 #97

Closed robertoperuzzo closed 2 years ago

robertoperuzzo commented 2 years ago

Describe the bug

During the workspace spinning up I get this error

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

  Problem 1
    - Root composer.json requires drupal/devel ^4.1 -> satisfiable by drupal/devel[4.1.0, ..., 4.x-dev].
    - drupal/devel[4.1.0, ..., 4.x-dev] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but the package is fixed to 10.0.0-alpha6 (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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer [require drush/drush:^11.0 drupal/coder:^8.3 drupal/devel:^4.1 drupal/admin_toolbar:^3.1] failed, composer command failed: exit status 2. stderr=

To Reproduce

Use DrupalPod Chrome extension to generate the workspace for working on a contrib module issue regarding Drupal 10.

Expected behavior

No composer requirement errors.

Screenshots

Screenshot 2022-09-09 at 15 20 33

Version and configuration information (please complete the following information)

shaal commented 2 years ago

Thank you for reporting this, I'm looking into it

robertoperuzzo commented 2 years ago

@shaal probably adding the new drupal/devel release 5.0.0-beta1 at this line when if [ "$d" == '10.0.x' ]; then

shaal commented 2 years ago

Thank you @robertoperuzzo !

I added your recommendations to PR #100 and merged it to main. This issue is resolved.