unable to install on Drupal 10 due to hook_event_dispatcher not released for D10

Created on 16 December 2022, almost 2 years ago
Updated 17 July 2024, 4 months ago

Problem/Motivation

Not possible to install on drupal ^10

Steps to reproduce

Run composer install command on drupal ^10

Proposed resolution

Edit composer.lock line 1148

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France BloberSh_

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia interlated

    I've got it installed with

    > composer require 'drupal/hook_event_dispatcher:^4.0@RC'

    "require-dev": {
    "drupal/core_event_dispatcher": "*",

    is in my composer lock file. Does core_event_dispatcher have to be a dependency of drulma_companion?

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

    I just attempted to install the dev version of this module, and got this complaint (over and over and over) in lando composer:

    lando composer require 'drupal/drulma_companion:2.x-dev@dev'

    Problem 1
    - 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 the package is fixed to 10.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.
    - 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 the package is fixed to 10.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.
    - drupal/drulma_companion 2.x-dev is an alias of drupal/drulma_companion dev-2.x and thus requires it to be installed too.
    - drupal/drulma_companion dev-2.x requires drupal/core_event_dispatcher ^3 || ^4 -> satisfiable by drupal/core_event_dispatcher[3.0.0, ..., 3.3.4].
    - Root composer.json requires drupal/drulma_companion 2.x-dev@dev -> satisfiable by drupal/drulma_companion[2.x-dev (alias of dev-2.x)].

    Please fix

  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    Can you require drupal/core_event_dispatcher (part of hook_event_dispatcher β†’ ) version 4 first and then try again?

    In hindsight it was a bad decision to rely on a module that is not maintained to the point of declaring a stable 4 version. I also accept patches to remove that dependency

  • Status changed to Active 10 months ago
  • πŸ‡¨πŸ‡¦Canada jon_007

    I can not install dulma_companion on Drupal 10. drulma_companion requires drupal/core_event_dispatcher which has been removed in Drupal 10.

    I believe core_event_dispatcher should be removed as a requirement to provide Drupal 10 compatibility.

    composer require 'drupal/drulma_companion:^2.1' -W

    Problem 1
    - drupal/drulma_companion[2.1.5, ..., 2.1.6] require drupal/core_event_dispatcher ^3 || ^4 -> satisfiable by drupal/core_event_dispatcher[3.0.0, ..., 3.3.4].
    - drupal/drulma_companion[2.1.3, ..., 2.1.4] require drupal/core_event_dispatcher ^3 -> satisfiable by drupal/core_event_dispatcher[3.0.0, ..., 3.3.4].
    - drupal/drulma_companion[2.1.0, ..., 2.1.2] 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.
    - 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.
    - 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.
    - Root composer.json requires drupal/drulma_companion ^2.1 -> satisfiable by drupal/drulma_companion[2.1.0, ..., 2.1.6].

  • Status changed to Postponed 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    Thanks for digging into this issue.
    FTR,I do have this module installed on one of my d10 sites so is definitely possible.

    Core event dispatcher is still in the d10 version of hook event dispatcher. See:

    https://git.drupalcode.org/project/hook_event_dispatcher/-/tree/4.x/modu...

    For this issue to be resolved a stable version of hook event dispatcher needs yo be released or folks will be forced to composer require RC versions (non-stable) before installing drulma companion.

  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    Waiting for a stable release is my preferred path for this to be resolved but I also accept MRs to remove the dependency.

  • Status changed to Closed: outdated 4 months ago
  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    I guess that this can be closed now we have a stable release

Production build 0.71.5 2024