composer-bin-plugin
composer-bin-plugin copied to clipboard
Compatibility with `Composer\InstalledVersions` API
Currently if you run a binary from a "bin", and it uses Composer's InstalledVersions API, it will report packages from the main project's directory composer.json, instead of bin's.
This behavior breaks, for example, roave/infection-static-analysis-plugin, which relies on such checks (which are wrapped in ocramius/package-versions lib, see here).
I'm not sure this plugin itself can do something about it -- maybe it requires changes to the Composer plugin system itself, but it is a problem nevertheless.
Also see https://github.com/Ocramius/PackageVersions/issues/220