Compatibility with D10, viewsreference and inline_entity_form

Created on 7 January 2024, 11 months ago

Thanks a lot for the module

Problem/Motivation

I try to install branch 3 with drush in D 10.2.1 and was unable. The error

 Problem 1
    - drupal/layoutcomponents[3.0.0, ..., 3.0.1] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 10.2.1 (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.2, ..., 3.0.3] require drupal/inline_entity_form * -> found drupal/inline_entity_form[dev-1.x, dev-2.0.x, dev-3.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x), 2.0.0-beta1, ..., 2.0.x-dev (alias of dev-2.0.x), 3.0.0-rc15, 3.0.0-rc16, 3.0.0-rc17, 3.x-dev (alias of dev-3.x)] but it does not match your minimum-stability.
    - Root composer.json requires drupal/layoutcomponents ^3.0 -> satisfiable by drupal/layoutcomponents[3.0.0, 3.0.1, 3.0.2, 3.0.3].

I made a first patch to require in composer.json

 "require": {
+        "drupal/core": "^9 || ^10",

But then i got problem with requirements in 2 other modules

    - Root composer.json requires drupal/layoutcomponents ^3.0.3 -> satisfiable by drupal/layoutcomponents[3.0.3].
    - drupal/layoutcomponents 3.0.3 requires drupal/inline_entity_form * -> found drupal/inline_entity_form[dev-1.x, dev-2.0.x, dev-3.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x), 2.0.0-beta1, ..., 2.0.x-dev (alias of dev-2.0.x), 3.0.0-rc15, 3.0.0-rc16, 3.0.0-rc17, 3.x-dev (alias of dev-3.x)] but it does not match your minimum-stability.
    - drupal/viewsreference 1.3.0 requires php ^5.5|^7.0 -> your php version (8.1.27) does not satisfy that requirement.
    - drupal/viewsreference[1.0.0, ..., 1.4.0] require drupal/core ~8.0 -> found drupal/core[8.0.0, ..., 8.9.20] but the package is fixed to 10.2.1 (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/viewsreference[1.5.0, ..., 1.6.0] require drupal/core ^8.6 -> found drupal/core[8.6.0, ..., 8.9.20] but the package is fixed to 10.2.1 (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/viewsreference[1.7.0, ..., 1.8.0] require drupal/core ^8.6|^9.0 -> found drupal/core[8.6.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 10.2.1 (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.3 requires drupal/viewsreference * -> satisfiable by drupal/viewsreference[1.0.0, ..., 1.8.0].
    - Root composer.json requires drupal/layoutcomponents 3.0.3 -> satisfiable by drupal/layoutcomponents[3.0.3].

So I patched them too.

Steps to reproduce

composer require 'drupal/layoutcomponents:^3.0'

Proposed resolution

A patch for the core and

"drupal/viewsreference": "^2.0@beta'",
"drupal/inline_entity_form": "^1 || ^3.",

Remaining tasks

Check that the patch works :)

I put the patch in the first comment.
And again, thanks a lot :)

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain candelas

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

Comments & Activities

Production build 0.71.5 2024