spencermalone / composer-merge-bypass-plugin
Hides merge conflicts in composer.lock and vendor/composer/installed.json
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.4
- composer-plugin-api: ^2.0
Requires (Dev)
- composer/composer: ^2.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10|^11|^12
This package is not auto-updated.
Last update: 2025-07-08 05:30:25 UTC
README
Globally install this composer plugin, and if you ever run composer update --lock
on a repository that has active merge conflicts in the composer.lock
or vendor/composer/installed.json
, then this will use a stream wrapper to rewrite the contents to a temporary file and load those instead of the real merge conflicted file, allowing composer to load the lock file even though it will has invalid json.
Usage
composer global require "spencermalone/composer-merge-bypass-plugin 0.0.2"
If you ever run into a merge conflict on composer.lock
or vendor/composer/installed.json
, you can just composer update --lock
with the merge conflicts still in place, and the "right thing" will happen (ie, it'll use a version of those files without any invalid characters and regenerate the contents)
Honorable Mention
Much of this is based on https://github.com/dg/bypass-finals, but applied to composer lock/json files instead of PHP source code.