oauth2_client ^3.0 dependency doesn't work in Drupal 10 install

Created on 13 April 2023, almost 2 years ago
Updated 27 April 2023, almost 2 years ago

Problem/Motivation

Unable to install this module in a site running Drupal 10.0.7 due to the dependency on oauth2_client 3.0.

Steps to reproduce

Install the latest Drupal 10 (10.0.7 as of this ticket.)
Run composer require drupal/o365

The following error message displays:

Problem 1
    - drupal/o365 3.0.22 requires drupal/oauth2_client ^3.0@beta -> satisfiable by drupal/oauth2_client[3.0.0, 3.1.0].
    - drupal/o365[2.0.0, ..., 2.0.6, 3.0.0, ..., 3.0.21] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.7] but the package is fixed to 10.0.7 (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/oauth2_client[3.0.0, ..., 3.1.0] require drupal/core ^8.9 || ^9 -> found drupal/core[8.9.0, ..., 8.9.20, 9.0.0, ..., 9.5.7] but the package is fixed to 10.0.7 (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/o365 * -> satisfiable by drupal/o365[2.0.0, ..., 2.0.6, 3.0.0, ..., 3.0.22].

Proposed resolution

Fix the depencency in the module's composer.json file to work with the newer 4.x branch of oauth2_client

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cromination

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

Comments & Activities

Production build 0.71.5 2024