Cannot install with Composer on D 10.0.9

Created on 27 June 2023, over 1 year ago
Updated 25 July 2023, over 1 year ago

Here's the feedback from Composer trying to install 3.3.6 on D10.0.9

$ composer require 'drupal/entity_hierarchy:^3.3'
./composer.json has been updated
Running composer update drupal/entity_hierarchy
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/entity_hierarchy[3.3.1, ..., 3.3.6] require previousnext/nested-set ^0.1.1 -> satisfiable by previousnext/nested-set[0.1.1, 0.1.2].
- previousnext/nested-set[0.1.1, ..., 0.1.2] require doctrine/dbal ~2.5 -> satisfiable by doctrine/dbal[v2.5.0, ..., 2.13.9].
- drupal/entity_hierarchy 3.3.0 requires drupal/core ^8.8 || ^9.0 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.9] but the package is fixed to 10.0.9 (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.
- doctrine/dbal[v2.5.0, ..., v2.5.2] require doctrine/common >=2.4,<2.6-dev -> found doctrine/common[v2.4.0, ..., v2.5.3] but the package is fixed to 3.4.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.
- doctrine/dbal[v2.5.3, ..., v2.5.5] require doctrine/common >=2.4,<2.7-dev -> found doctrine/common[v2.4.0, ..., v2.6.2] but the package is fixed to 3.4.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.
- doctrine/dbal[v2.5.6, ..., v2.5.13] require doctrine/common >=2.4,<2.8-dev -> found doctrine/common[v2.4.0, ..., v2.7.3] but the package is fixed to 3.4.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.
- doctrine/dbal[v2.6.0, ..., v2.9.3] require php ^7.1 -> your php version (8.1.2) does not satisfy that requirement.
- doctrine/dbal[v2.10.0, ..., 2.10.4] require php ^7.2 -> your php version (8.1.2) does not satisfy that requirement.
- doctrine/dbal[2.11.0, ..., 2.11.3] require php ^7.3 -> your php version (8.1.2) does not satisfy that requirement.
- doctrine/dbal[2.12.0, ..., 2.13.9] require doctrine/event-manager ^1.0 -> found doctrine/event-manager[v1.0.0, ..., 1.2.0] but the package is fixed to 2.0.0 (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.
- doctrine/dbal[2.13.0, ..., 2.13.8] require doctrine/deprecations ^0.5.3 -> found doctrine/deprecations[v0.5.3] but the package is fixed to v1.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.
- Root composer.json requires drupal/entity_hierarchy ^3.3 -> satisfiable by drupal/entity_hierarchy[3.3.0, ..., 3.3.6].

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

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

πŸ’¬ Support request
Status

Needs review

Version

3.0

Component

Code (module)

Created by

πŸ‡ΊπŸ‡ΈUnited States guymandude

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

Comments & Activities

  • Issue created by @guymandude
  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    What happens if you try with the -W flag per the output?

  • πŸ‡ΊπŸ‡ΈUnited States rtvenge

    I think the root cause might be that you are already on dbal:2.0. I am trying to upgrade dbal to v 2.0 and am getting an error because entity_hiearchy only supports dbal ~1.0.

    lando composer require 'drupal/dbal:^2.0' -W
    ./composer.json has been updated
    Running composer update drupal/dbal --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/dbal ^2.0, found drupal/dbal[dev-2.x, 2.0.0, 2.x-dev] but these were not loaded, likely because it conflicts with ano
    ther require.
      Problem 2
        - drupal/entity_hierarchy is locked to version 3.3.6 and an update of this package was not requested.
        - drupal/entity_hierarchy 3.3.6 requires drupal/dbal ~1.0 -> found drupal/dbal[dev-1.x, 1.0.0-rc1, ..., 1.x-dev (alias of dev-1.x)] but it conflicts with
    your root composer.json require (^2.0).

    This is running on Drupal 9.5.10.

    Are there any plans to support dbal 2.0?

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Yep. try the 4.x branch

    It doesn't have a stable release because I intend to add argument and return type hints everywhere so it will have BC breaking changes.

    But if you're not extending any classes from the module, you should be fine.

Production build 0.71.5 2024