wikimedia / composer-merge-plugin

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

Composer install not respecting versions in lock file #235

Closed diegom-ciandt closed 1 year ago

diegom-ciandt commented 2 years ago

Basically, when I run "composer install" it checks all packages coming from merged composer.json files and validates if they have a "higher" version. If yes, than it simply ignores version that is already locked and updates it. In my case, it broke a build in our project because a non-compatible package was updated (and we were not aware it was incompatible, due to be launched recently).

To make things easier, is there a way to run composer install merging all plugins but respecting composer.lock main file?

bd808 commented 1 year ago

252 is the proposed solution to this issue.