Not able to install on Drupal 10.1 and break upgrade to D10 from D9

Created on 11 December 2023, 12 months ago
Updated 28 January 2024, 10 months ago

Problem/Motivation

Hello,

I've tried several times to upgrade D9.5 to D10 and this module breaks the update process by composer.
I've also tried to remove it, upgrade to D10.1 and reinstalling it but I got the same errors :

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/libraries_provider 2.0.3 requires drupal/core_event_dispatcher ^3 || ^4 -> satisfiable by drupal/core_event_dispatcher[3.0.0, ..., 3.3.4].
    - drupal/libraries_provider[2.0.0, ..., 2.0.2] require drupal/core_event_dispatcher ^3 -> satisfiable by drupal/core_event_dispatcher[3.0.0, ..., 3.3.4].
    - drupal/core_event_dispatcher[3.0.0, ..., 3.2.0] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
    - drupal/core_event_dispatcher[3.3.0, ..., 3.3.4] require drupal/core ^9.3 -> found drupal/core[9.3.0, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires drupal/libraries_provider ^2.0 -> satisfiable by drupal/libraries_provider[2.0.0, 2.0.1, 2.0.2, 2.0.3].


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

Are you sure about the requirements on drupal/core_event_dispatcher ^3 || ^4 ?

Thank a lot in advance !

🐛 Bug report
Status

Postponed

Version

2.0

Component

Code

Created by

🇫🇷France Striknin Lyon

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

Comments & Activities

  • Issue created by @Striknin
  • Status changed to Postponed: needs info 12 months ago
  • 🇪🇸Spain rodrigoaguilera Barcelona

    I think this is due to https://www.drupal.org/project/hook_event_dispatcher not having a 4.0 stable release.
    can you try "composer req drupal/hook_event_dispatcher:^4@rc" before requiring libraries_provider?

  • 🇫🇷France Striknin Lyon

    Hi !

    I already tried this, I doesn't work.
    I tried :

    • composer req drupal/hook_event_dispatcher:^4@rc
    • composer require 'drupal/libraries_provider:^2.0'

    And also with "--with-all-dependencies".

    But, you're right ! It's due to hook_event_dispatcher. In my composer.json, I've set minimum-stability to dev and install is successfull.

  • Status changed to Closed: works as designed 12 months ago
  • 🇪🇸Spain rodrigoaguilera Barcelona

    I think that is due to hook_event_dispatcher having many packages like drupal/core_event_dispatcher. All those need to be required explicitly when the minimum stability is set to stable.

  • 🇦🇺Australia interlated

    I see

    "upstreamable/jsdelivr-api-client": "^1",

    Which unless you downgrade (-W)

    - Downgrading psr/http-message (2.0 => 1.1):

    results in an odd conflict message

    > composer require 'drupal/libraries_provider:^2.0'

    drupal/libraries_provider 2.0.0 requires drupal/hook_event_dispatcher ^2 -> found drupal/hook_event_dispatcher[2.0.0, ..., 2.5.0] but it conflicts with your root composer.json require (^4.0@RC).

  • 🇪🇸Spain rodrigoaguilera Barcelona

    I see there might be a problem with another package that requires psr/http-message in version 2.

    Can you post the output of "composer why psr/http-message"?

    Anyway this would be a problem upstream, so far I don't know how we can workaround that in the drupal module.

  • 🇦🇺Australia interlated

    composer why psr/http-message
    guzzlehttp/psr7 2.6.2 requires psr/http-message (^1.1 || ^2.0)
    php-http/httplug 2.4.0 requires psr/http-message (^1.0 || ^2.0)
    php-http/message 1.16.0 requires psr/http-message (^1.1 || ^2.0)
    php-http/message-factory 1.1.0 requires psr/http-message (^1.0 || ^2.0)
    psr/http-client 1.0.3 requires psr/http-message (^1.0 || ^2.0)
    psr/http-factory 1.0.2 requires psr/http-message (^1.0 || ^2.0)
    symfony/psr-http-message-bridge v6.4.2 requires psr/http-message (^1.0|^2.0)
    upstreamable/jsdelivr-api-client 1.0.1 requires psr/http-message (^1.0)

  • Status changed to Postponed 10 months ago
  • 🇪🇸Spain rodrigoaguilera Barcelona

    Thanks for the info. It made clear that the problem was upstreamable/jsdelivr-api-client
    I released the version 1.0.2 that accepts psr/http-message ^2 as a dependency.

    This should get us closer to an easier install

    I'm reopening because of hook_event_dispatcher not having a stable version yet and that makes this module difficult to install. I accept patches to remove the dependency.

Production build 0.71.5 2024