Support drupal/media_library_form_element:^2

Created on 20 December 2021, almost 3 years ago
Updated 21 March 2023, over 1 year ago

Problem/Motivation

This module cannot be installed on a site that already has a recent version of drupal/bootstrap_layout_builder installed, due to a composer conflict:

composer require drupal/layoutcomponents:^3.0
./composer.json has been updated
Running composer update drupal/layoutcomponents
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
    - drupal/layoutcomponents[dev-3.0.x, 3.0.0, ..., 3.0.1] require drupal/media_library_form_element ^1.0 -> found drupal/media_library_form_element[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but the package is fixed to 2.0.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.
    - drupal/layoutcomponents 3.0.x-dev is an alias of drupal/layoutcomponents dev-3.0.x and thus requires it to be installed too.
    - Root composer.json requires drupal/layoutcomponents ^3.0 -> satisfiable by drupal/layoutcomponents[3.0.0, 3.0.1, 3.0.x-dev (alias of dev-3.0.x)].

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.
composer [require drupal/layoutcomponents:^3.0] failed, composer command failed: exit status 2. stderr=

Doing a composer why you quickly find that bootstrap_layout_builder installs dependency drupal/bootstrap_styles (^1.0) which installs dependency drupal/media_library_form_element (^2.0) which has a conflict with this module's dependency on media_library_form_element (^1.0)

Steps to reproduce

  1. Install clean drupal9.
  2. composer require drupal/bootstrap_layout_builder:^2.0
  3. composer require drupal/layoutcomponents:^3.0

Proposed resolution

Add support for both drupal/media_library_form_element:^1.0 || ^2.0

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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.

Production build 0.71.5 2024