Incompatibility when upgrading to drupal/bat ^11.0 with drupal/bat_api ^3.1 and drupal/bat_event ^10.1.0-rc1

Created on 2 December 2024, 4 months ago

Problem/Motivation

I'm encountering an issue when attempting to upgrade drupal/bat to version ^11.0. The upgrade fails due to conflicts with the dependencies drupal/bat_api and drupal/bat_event. The error suggests that drupal/bat_event version 10.1.0-rc1 is incompatible with drupal/bat ^11.0.

Description:
I'm encountering an issue when attempting to upgrade drupal/bat to version ^11.0. The upgrade fails due to conflicts with the dependencies drupal/bat_api and drupal/bat_event. The error suggests that drupal/bat_event version 10.1.0-rc1 is incompatible with drupal/bat ^11.0.

Current Setup

  • Drupal Core Version: 10.3.10
  • Dependencies:
"require": {
    "drupal/core-composer-scaffold": "10.3.10",
    "drupal/core-project-message": "10.3.10",
    "drupal/core-recommended": "10.3.10",
    "drupal/bat": "^10.2",
    "drupal/bat_api": "^3.1",
    "drupal/bat_event": "^10.1"
}

Steps to reproduce

Update composer.json to require drupal/bat:^11.0:

lando composer require 'drupal/bat:^11.0' -W

Expected Result

All dependencies are updated to compatible versions without conflict.

Actual Result

The following error is shown:

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

  Problem 1
    - Root composer.json requires drupal/bat ^11.0, found drupal/bat[dev-11.0.x, 11.0.0, 11.0.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - drupal/bat_api is locked to version 3.1.0 and an update of this package was not requested.
    - drupal/bat_api 3.1.0 requires drupal/bat_event * -> satisfiable by drupal/bat_event[10.1.0-rc1].
    - drupal/bat_event 10.1.0-rc1 requires drupal/bat ^10 -> found drupal/bat[dev-10.x, 10.1.0-alpha1, ..., 10.x-dev (alias of dev-10.x)] but it conflicts with your root composer.json require (^11.0).


Installation failed, reverting ./composer.json and ./composer.lock to their original content.
🐛 Bug report
Status

Active

Version

11.0

Component

Code

Created by

🇲🇦Morocco meryem dibe

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

Comments & Activities

  • Issue created by @meryem dibe
  • I was able to force install bat_api by cloning it from git, and then installing the dependencies. There was at least one (I think, and off the top of my head, I can't remember which one; just that I had to clone that one from git as well) dependency that initially was showing as "incompatible" with Drupal 11, which was easily worked around by editing the info.yaml file associated with it.

    I don't know if this was a good idea or not, but it turned out to be a moot point and a complete waste of time, because, while it got the thing installed, it still didn't work. I went through the whole meeting room "tutorial" thing in the vastly outdated documentation on roomify.github.io, and when I got to the "update availability" section under BAT for Drupal, after entering the dates/times of the availability update, I got the white screen of death: "This website has encountered and unexpected error. Try again later." Fortunately, I was able to get back out of that, but in the end, I threw up my hands in frustration and uninstalled the whole thing.

  • 🇮🇹Italy afagioli Rome

    We have today the 11.1 alpha release correctly installing with BAT API

Production build 0.71.5 2024