unable to install social_auth_google 4.0
Overview
After upgrading Drupal from 9 to 10 it is not possible to update social_auth_google. Version conflict.
Reproduction steps
- uninstall drupal/social_auth_google (otherwise, upgrade is not possible if civicrm is installed)
- upgrade site to drupal 10
- install drupal/social_auth_google : composer require drupal/social_auth_google
Current behaviour
composer require 'drupal/social_auth_google:^4.0' ./composer.json has been updated Running composer update drupal/social_auth_google Gathering patches for root package. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1 - Root composer.json requires drupal/social_auth_google ^4.0 -> satisfiable by drupal/social_auth_google[4.0.0-beta1, 4.0.0, 4.0.1, 4.0.x-dev]. - drupal/social_auth_google[4.0.0-beta1, ..., 4.0.x-dev] require league/oauth2-google ^4.0 -> found league/oauth2-google[4.0.0, 4.0.1] but the package is fixed to 3.0.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.
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.
Expected behaviour
----------------------------------------
Installation without error
Environment information
----------------------------------------
* __CiviCRM:__ _5.68.0_
* __PHP:__ _8.1.18__
* __CMS:__ _Drupal 10.1.7_
* __Database:__ _10.5.21-MariaDB_
* __Web Server:__ _Apache_
Comments
----------------------------------------
league/oauth2-google version is fixed in civicrm-core
composer why league/oauth2-google
civicrm/civicrm-core 5.68.0 requires league/oauth2-google (^3.0)