Drupal 11 compatibility into composer.json

Created on 30 June 2025, about 2 months ago

Problem/Motivation

Despite the module is compatible with Drupal 11 as per core_version_requirement: ^8.8 || ^9 || ^10 || ^11 into menu_markup.info.yml file, when I try to install the module on a fresh Drupal 11 installation using the composer command composer require 'drupal/menu_markup:^1.3', the following error is thrown:

Problem 1
    - Root composer.json requires drupal/menu_markup ^1.3 -> satisfiable by drupal/menu_markup[1.3.0].
    - drupal/menu_markup 1.3.0 requires drupal/core ^8.8 || ^9 || ^10 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.11, 10.0.0, ..., 10.5.1] but the package is fixed to 11.1.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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Steps to reproduce

  1. Try to install the module using composer command: composer require 'drupal/menu_markup:^1.3'

Proposed resolution

Add Drupal 11 core requirement into the composer.json file.

Remaining tasks

  1. Review and Test by them community.

User interface changes

No

API changes

No

Data model changes

No

🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

🇨🇴Colombia carma03

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

Merge Requests

Comments & Activities

  • Issue created by @carma03
  • I am seeing this also with the stable and the dev also, using the -W does not make a difference

    Are you sure this is Drupal 11 ready? Drupal 11 is upto 11/2/3 as of Aug 7, 2025

    % composer -W require 'drupal/menu_markup:^1.3'
    ./composer.json has been updated
    Running composer update drupal/menu_markup --with-all-dependencies
    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/menu_markup ^1.3 -> satisfiable by drupal/menu_markup[1.3.0].
    - drupal/menu_markup 1.3.0 requires drupal/core ^8.8 || ^9 || ^10 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.11, 10.0.0, ..., 10.5.2] but these were not loaded, likely because it conflicts with another require.

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

Production build 0.71.5 2024