Problem/Motivation
D10 need drupal/captcha:^2.X
But composer can`t install drupal/recaptcha_v3 with this new version of drupal/captcha
Steps to reproduce
# drush pmu captcha
# composer remove 'drupal/recaptcha_v3'
# composer require 'drupal/captcha:^2.0@beta' -W
# composer require 'drupal/recaptcha_v3'
./composer.json has been updated
Running composer update drupal/recaptcha_v3
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/recaptcha_v3[dev-1.x, 1.0.0, ..., 1.x-dev] require drupal/captcha ^1.0.0-beta4 -> found drupal/captcha[1.0.0-beta4, ..., 1.9.0] but it conflicts with your root composer.json require (^2.0@beta).
- Root composer.json requires drupal/recaptcha_v3 * -> satisfiable by drupal/recaptcha_v3[dev-1.x, 1.0.0, ..., 1.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/recaptcha_v3:*" to figure out if any version is installable, or "composer require drupal/recaptcha_v3:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Proposed resolution
change drupal/recaptcha_v3 composer json file
Remaining tasks
change drupal/recaptcha_v3 composer json file
User interface changes
no
API changes
no
Data model changes
no