Moderation dashboard version locked in project composer file

Created on 13 March 2024, 9 months ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

When updating Drupal outdated dependencies and core to latest versions, I try to update Moderation Dashboard module to latest current version (^3.0), but the version is locked in version 3.3.6 of Acquia CMS Common to ^2.1

Steps to reproduce

  • Install Drupal 10.2.4
  • composer require 'drupal/acquia_cms_common:^3.3'
  • composer outdated "drupal/*"
  • composer require 'drupal/moderation_dashboard:^3.0' --with-all-dependencies

Current output:

./composer.json has been updated
Running composer update drupal/moderation_dashboard --with-all-dependencies
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/moderation_dashboard ^3.0, found drupal/moderation_dashboard[dev-3.0.x, 3.0.0, 3.0.1, 3.0.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - drupal/acquia_cms_common is locked to version 3.3.6 and an update of this package was not requested.
    - drupal/acquia_cms_common 3.3.6 requires drupal/moderation_dashboard ^2.1 -> found drupal/moderation_dashboard[2.1.0, ..., 2.1.5] but it conflicts with your root composer.json require (^3.0).
  Problem 3
    - drupal/acquia_cms_common 3.3.6 requires drupal/moderation_dashboard ^2.1 -> found drupal/moderation_dashboard[2.1.0, ..., 2.1.5] but it conflicts with your root composer.json require (^3.0).
    - drupal/acquia_cms_toolbar 1.4.6 requires drupal/acquia_cms_common ^1.9 || ^2.1 || ^3.1 -> satisfiable by drupal/acquia_cms_common[3.3.6].
    - drupal/acquia_cms_toolbar is locked to version 1.4.6 and an update of this package was not requested.


Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Composer [require drupal/moderation_dashboard:^3.0 --with-all-dependencies] failed, composer command failed: exit status 2. stderr=

Proposed resolution

Simple composer.json file to require specific moderation dashboard version, please see attached patch.

🐛 Bug report
Status

Needs work

Version

3.3

Component

Code

Created by

🇨🇴Colombia yeskmilo

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

Comments & Activities

  • Issue created by @yeskmilo
  • Status changed to Needs work 9 months ago
  • 🇺🇸United States jds1 Hudson Valley, NY

    Thank you for this patch! I am looking for something like this too. The patch applies but the changes are still in `composer.lock` and we still end up in dependency hell. I think this would need to be committed for everything to apply, and I'm not sure if there are other implications about the `moderation_dashboard` dependency. This is something maintainers should chime in on.

  • 🇮🇳India vipin.mittal18 Greater Noida

    Hello yeskmilo & jds1

    Please note that the attached patch will not assist in updating the application to the latest moderation dashboard version 3. We are in the process of allowing our customers to update to the latest version of Moderation Dashboard after proper verification. You will soon be able to download the latest release of Acquia CMS Common that supports Moderation Dashboard Version 3.

Production build 0.71.5 2024