Update composer.json for Drupal >=9.4.4 compatibility

Created on 9 September 2022, over 2 years ago
Updated 10 December 2024, 9 days ago

Problem/Motivation

The iframe_video module can't be installed on Drupal core >=9.4.4 due to composer dependency issue.

Since https://www.drupal.org/node/3295096 , this happens:

  Problem 1
    - Root composer.json requires drupal/iframe_video ^1.0 -> satisfiable by drupal/iframe_video[1.0.2].
    - drupal/iframe_video 1.0.2 requires drupal/media * -> found drupal/media[dev-1.x, 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.

Steps to reproduce

Install Drupal core 9.4.5 using composer, then try installing iframe_video.

Proposed resolution

Update the format for the dependencies in the *.info.yml to indicate the package name, in addition to the module name.do

From:

dependencies:
  - media
  - media_library
  - iframe

to:

dependencies:
  - drupal:media
  - drupal:media_library
  - iframe:iframe

See relevant documentation

Similar issues and solutions can be seen for other modules:

Remaining tasks

write patch

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Closed: duplicate

Version

1.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