Dependency Issues with BAT

Created on 8 March 2024, 4 months ago
Updated 16 April 2024, 2 months ago

Problem/Motivation

Trying to install Bee hotel for drupal 10 and i've been following the documentation however, when I get to installing Bee 3.0@RC, I'm getting a dependency error. It seems to be needing a BAT booking that requires a Bat dependency that's built for Drupal 8. Maybe I'm missing somthing

Problem 1
- drupal/bat_booking[1.0.0, ..., 1.3.0] require drupal/bat ^1 -> found drupal/bat[1.0.0-rc1, ..., 1.3.0] but it conflicts with your root composer.json require (^10.1@RC).
- drupal/bat_booking 2.1.0 requires drupal/bat ^2 -> found drupal/bat[2.1.0] but it conflicts with your root composer.json require (^10.1@RC).
- drupal/bee 3.0.0-rc1 requires drupal/bat_booking * -> satisfiable by drupal/bat_booking[1.0.0, 1.1.0, 1.2.0, 1.3.0, 2.1.0].
- Root composer.json requires drupal/bee ^3.0@RC -> satisfiable by drupal/bee[3.0.0-rc1].

Steps to reproduce

Just doing a composer require 'drupal/bee:^3.0@RC'

🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Miscellaneous

Created by

🇺🇸United States TheGentleman

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

Comments & Activities

  • Issue created by @TheGentleman
  • 🇫🇮Finland jwwj

    I have a similar issue when I try to force the bat module to be a newer version:

    composer require 'drupal/bat:^10.1@RC'
    
    Problem 1
        - Root composer.json requires drupal/bat ^10.1@RC, found drupal/bat[10.1.0-rc1, 10.1.0-rc2, 10.1.0-rc3] but these were not loaded, likely because it conflicts with another require.
      Problem 2
        - drupal/bat_booking 2.1.0 requires drupal/bat ^2 -> found drupal/bat[2.1.0] but it conflicts with your root composer.json require (^10.1@RC).
        - drupal/bee 3.0.0-rc1 requires drupal/bat_booking * -> satisfiable by drupal/bat_booking[2.1.0].
        - drupal/bee is locked to version 3.0.0-rc1 and an update of this package was not requested.

    This could potentially be because there is no stable version of drupal/bat 10.x yet, so composer falls back to the minimum stable version of 2.1.0 (I'm not sure of the inner workings of composer and how it resolves dependencies, but this is my guess).

    I was able to work around the issue by aliasing the module in my composer require (only downside I'm now on the dev branch instead of the RC, couldn't figure out how to alias an RC version):

    composer require 'drupal/bat:10.x-dev as 2.1.0'

    But I think the more stable solution would be for drupal/bee to explicitly require a specific version of drupal/bat_booking and any other dependencies it has in it's composer.json. But I leave that for the maintainers to decide...

  • 🇮🇹Italy afagioli Rome

    You can install BEE on Drupal 10.2.* following this guide
    https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

  • Status changed to Needs review 3 months ago
  • Status changed to Postponed: needs info 2 months ago
Production build 0.69.0 2024