When I try to install this I get the following:

-> composer require 'drupal/field_inheritance:2.0.x-dev@dev'
./composer.json has been updated
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for drupal/field_inheritance 2.0.x-dev@dev -> satisfiable by drupal/field_inheritance[2.0.x-dev].
- drupal/field_inheritance 2.0.x-dev requires wikimedia/composer-merge-plugin ^1.5@dev -> no matching package found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
- It's a private package and you forgot to add a custom repository to find it

Read for further common problems.

Installation failed, reverting ./composer.json to its original content.

I am wondering if it is getting hung up because I have version ^2.0 of the composer-merge-plugin installed

Thanks in advance

Comments

Christopher Riley created an issue. See original summary.

owenbush’s picture

Ah that sucks. I agree, maybe this is because you have a newer version of composer-merge-plugin.

I really do not want to have to ship the module with a core patch, but the core issue remains unresolved at this time. Maybe I should just remove it from the composer.json and encourage people to install the patch themselves manually. Do you have thoughts or a preference?

mmjvb’s picture

No it is not that you have 2.0, it is that the requirement is wrong! There is no ^1.5 as mentioned in the error:

docker@cli:/var/www$ composer show -a wikimedia/composer-merge-plugin|grep ersions
versions : dev-master, 2.x-dev, v2.0.1, v2.0.0, v1.4.1, v1.4.0, v1.3.1, v1.3.0, v1.2.1, v1.2.0, v1.1.0, v1.0.0, v0.5.0
docker@cli:/var/www$

Not even convinced it is needed, AFAIK you don't need composer-merge-plugin to provide a patch. Your patch plugin should take care of that. It probably does because adding merge plugin is not enough. You need to include this module composer.json into project composer.json to process it.

owenbush’s picture

Status: Active » Fixed

I have removed the dependencies on composer-patches and composer-merge-plugins from this module, as you say, those should be the responsibility of the project, not this package. This has been merged into the latest dev versions of the 8.x-1.x and 2.0.x branches.

  • owenbush committed d2adf63 on 8.x-1.x
    Issue #3206251 by Christopher Riley, owenbush: Composer Merge Plugin...

  • owenbush committed 8e1dbf5 on 2.0.x
    Issue #3206251 by Christopher Riley, owenbush: Composer Merge Plugin...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.