composer-bin-plugin icon indicating copy to clipboard operation
composer-bin-plugin copied to clipboard

Compatibility with `Composer\InstalledVersions` API

Open someniatko opened this issue 3 years ago • 0 comments

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

someniatko avatar Aug 26 '22 08:08 someniatko