Dependent upon version 1.x of Captcha, but D10 need 2.x

Created on 25 February 2023, over 1 year ago
Updated 17 May 2023, over 1 year ago

Problem/Motivation

D10 need drupal/captcha:^2.X
But composer can`t install drupal/recaptcha with this new version of drupal/captcha

Steps to reproduce

# drush pmu captcha
# composer remove 'drupal/recaptcha'
# composer require 'drupal/captcha:^2.0@beta' -W
# composer require 'drupal/recaptcha'

./composer.json has been updated
Running composer update drupal/recaptcha
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/recaptcha[dev-1.x, 1.x-dev, 2.0.0-rc1, ..., 2.2.0] require drupal/core ~8.0 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but the package is fixed to 10.0.3 (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.
- drupal/recaptcha[dev-2.x, 2.3.0, ..., 2.x-dev, 3.0.0] require drupal/captcha ^1.0.0-alpha1 -> found drupal/captcha[1.0.0-beta1, ..., 1.9.0] but it conflicts with your root composer.json require (^2.0@beta).
- drupal/recaptcha[dev-3.x, 3.1.0, ..., 3.x-dev] require drupal/captcha ^1.4 -> found drupal/captcha[1.4.0, ..., 1.9.0] but it conflicts with your root composer.json require (^2.0@beta).
- Root composer.json requires drupal/recaptcha * -> satisfiable by drupal/recaptcha[dev-1.x, dev-2.x, dev-3.x, 1.x-dev, 2.0.0-rc1, ..., 2.x-dev, 3.0.0, 3.1.0, 3.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:*" to figure out if any version is installable, or "composer require drupal/recaptcha:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Proposed resolution

composer.json needs review - add new version of captcha

Remaining tasks

change drupal/recaptcha composer json file

User interface changes

no

API changes

no

Data model changes

no

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

General

Created by

πŸ‡·πŸ‡ΊRussia kovalenkopavel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024