Composer Install Fails on Drupal 10.1 with PHP 8.2

Created on 18 September 2023, over 1 year ago
Updated 25 September 2023, about 1 year ago

Problem/Motivation

The install fails when performing a composer require drupal/webformnavigation with the following error:

  Problem 1
    - drupal/webform[5.16.0, ..., 5.31.0] require drupal/core ^8.8 -> found drupal/core[8.8.0, ..., 8.9.20] but the package is fixed to 10.1.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/webform[6.0.0, ..., 6.1.4] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.10] but the package is fixed to 10.1.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/webform 6.1.5 requires drupal/core ^9.3 -> found drupal/core[9.3.0, ..., 9.5.10] but the package is fixed to 10.1.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/webformnavigation[2.0.0, ..., 2.0.1] require drupal/webform ^5.16 || ^6.0 -> satisfiable by drupal/webform[5.16.0, ..., 5.31.0, 6.0.0, ..., 6.1.5].
    - Root composer.json requires drupal/webformnavigation * -> satisfiable by drupal/webformnavigation[2.0.0, 2.0.1].

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/webformnavigation:*" to figure out if any version is installable, or "composer require drupal/webformnavigation:^2.1" if you know which you need.

Steps to reproduce

  • Start a vanilla Drupal 10.1 install on a server using PHP 8.2.
  • Run composer require drupal/webformnavigation

Proposed resolution

We should adjust the composer dependencies to include version 6.2 of the Webform module.

πŸ› Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rymcveigh

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

Comments & Activities

Production build 0.71.5 2024