Problem/Motivation
If I do run
composer require 'drupal/group_content_menu_bundles:^1.0@alpha'
Then I do see this error:
Problem 1
- Root composer.json requires drupal/group_content_menu_bundles ^1.0@alpha -> satisfiable by drupal/group_content_menu_bundles[1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-alpha3, 1.0.0-alpha4].
- drupal/group_content_menu_bundles[1.0.0-alpha1, ..., 1.0.0-alpha3] require drupal/group_content_menu 3.0.x-dev -> found drupal/group_content_menu[dev-3.0.x, 3.0.x-dev (alias of dev-3.0.x)] but the package is fixed to 3.0.5 (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/group_content_menu_bundles 1.0.0-alpha4 requires drupal/menu_item_extras ^2.19 -> satisfiable by drupal/menu_item_extras[2.19.0, 2.x-dev].
- drupal/menu_item_extras[2.19.0, ..., 2.x-dev] require drupal/core ^9.4 || ^10.0 -> found drupal/core[9.4.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev] but the package is fixed to 11.1.1 (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.
The error occurs, because group_content_menu_bundles requires version 2.19.0 of the menu_item_extras module. This module version does not support Drupal 11.
Steps to reproduce
Just run
composer require 'drupal/group_content_menu_bundles:^1.0@alpha'
Proposed resolution
Require the latest stable version of menu_item_extras. Currently version 3.1.0. This version supports Drupal 11.
Issue fork group_content_menu_bundles-3507648
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 1.0.x
changes, plain diff MR !2
- group_content_menu_bundles-3507648/1.0.x
compare
Comments
Comment #3
jepster_If I do install group_content_menu_bundles with the issue fork, which is just requiring menu_item_extras in version 3.1.0, then I do get that error:
Do you know any solution for this already?
Comment #4
tim-dielsI think we need to ask for support for the menu_item_extras 3.x
There could be issues identified and can be bundled here if needed.
For me the issue that let me to this issue is #3282717: "Parent link" option unusable in group_content_menu menus where the menu parent item is empty.
So I suggest we ask for support for the 3.x version of menu_item_extras
I'll test the error that is described here and see if everything can be installed and works as needed.
Comment #6
tim-dielsI've tested this but can't reproduce the error.
Re-added 2.x support or you can't easily switch between the versions and some maybe still are on 2.x of the module. By adding the extra version constraint with | it will allow to install on Drupal 11 and update the requirements.
Comment #7
tim-dielsFor now I use the next to include this in our project:
In
composer.jsonThen run
composer require drupal/group_content_menu_bundles:1.0.x-dev#8866cc33b62186f7bc1da621a7105ec3c039c838Make sure you have the dependencies added to your composer.json.
Comment #8
jepster_For me this looks like a possible solution. Thanks for providing your changes.
Can anyone of the maintainers please take a look?
Comment #9
jepster_Comment #10
tim-dielsPinged both maintainers on slack to see if they can have a look.
Comment #12
alecsmrekar commentedThanks, merged and tagged alpha5.
Comment #13
alecsmrekar commentedComment #14
alecsmrekar commented