Problem/Motivation
On Core 10.2.0-rc and inline_entity_form 8.x-1.0-rc15

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
Comment #2
geek-merlinGreat! Not you#re doing the right thing. providing all information.
This looks wrong:
It requires 3 and 1 at once? This can not work.
How did that come?
Can you post your composer.json?
Comment #3
geek-merlinComment #4
geek-merlinHmm, i can NOT reproduce this on a clean install, but i CAN reproduce this on a project of mine. Investigating.
Comment #5
geek-merlinOK i learnt that this syntax also works:
composer update "drupal/inline_entity_form:^3"Comment #6
geek-merlin"Luckily" the project i tested on had the problem due to the use of composer-merge plugin:
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.
Comment #7
geek-merlinOK, 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!