Problem/Motivation

On Core 10.2.0-rc and inline_entity_form 8.x-1.0-rc15
Available updates

I attempted to upgrade with the following results:

% lando composer require 'drupal/inline_entity_form:^3.0@RC'
./composer.json has been updated
Running composer update drupal/inline_entity_form
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
    - Root composer.json requires drupal/inline_entity_form ^3.0@RC, ^1.0, 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.x-dev (alias of dev-3.x)] but it does not match the constraint.

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.
% lando composer why drupal/inline_entity_form         
drupal/recommended-project  dev-main  requires  drupal/inline_entity_form (^1.0@RC)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

bsnodgrass created an issue. See original summary.

geek-merlin’s picture

Great! Not you#re doing the right thing. providing all information.

This looks wrong:

Root composer.json requires drupal/inline_entity_form ^3.0@RC, ^1.0

It requires 3 and 1 at once? This can not work.
How did that come?
Can you post your composer.json?

geek-merlin’s picture

Status: Active » Postponed (maintainer needs more info)
geek-merlin’s picture

Version: 3.0.0-rc15 » 3.x-dev
Status: Postponed (maintainer needs more info) » Active

Hmm, i can NOT reproduce this on a clean install, but i CAN reproduce this on a project of mine. Investigating.

geek-merlin’s picture

Status: Active » Postponed (maintainer needs more info)

OK i learnt that this syntax also works:
composer update "drupal/inline_entity_form:^3"

geek-merlin’s picture

"Luckily" the project i tested on had the problem due to the use of composer-merge plugin:

"extra": {
        "merge-plugin": {
            "include": [
                "web/modules/custom/*/composer.json"
            ]
        },

So updating root composer.json could not work, because IEF was required in one of the custom modules.
Doing the update there, then doing a root update, fixes the problem there.

Maybe this helps in your case too? Please report back.

geek-merlin’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

OK, i see the problem. Many projects require IEF1. Of course.

We must have contributed projects adjust their dependencies first. BEFORE people upgrade to 3.x.
Will adjust this.

Thanks for bringing this up!