wikimedia / composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
MIT License
926 stars 160 forks source link

Add support for merge-replace option #221

Closed LukeTowers closed 1 year ago

LukeTowers commented 2 years ago

It would be great if we could disable the merging of the replace property as it causes issues when the composer.json file being merged from is included by a package that is itself loaded via the main composer.json file. See https://github.com/wintercms/wn-user-plugin/issues/12. Merging these properties were added in https://github.com/wikimedia/composer-merge-plugin/pull/60 but there was no way to disable that functionality.

Failing that it would be good if there was some way to indicate not to merge the configs of any packages that are already included by the main composer.json file since their configs will already be evaluated by Composer when they're required in the main composer.json file.

eileenmcnaughton commented 2 years ago

This is what I'm looking for too - not sure if using self:version makes a difference - I'm trying it but it's giving me other issues