after a composer install i noticed multiple file downloads with the wrong version.
Every(?) packages will trigger the installOrUpdateFunction Event and try to install captainhook in the version of the other Package.
In this merge request i seperated the Composer V2 and Composer V1 logic into a OperationPackage to use it in the PackageVersion and the ConfiguredMediator.
I tried to run the cs-fixer, but the cs-fixer will change a lot. So i skipped the cs-fixer.
For now every configured package has to use the same packageName in the distributor.xml as the composer package name.
If the name differs, the hook is not triggerd and no installation would be made.
In my example, with Captainhook a seperate fix is required to change the package name from packageName="captainhook/captainhook" to packageName="captainhook/captainhook-phar" in the distributor.xml
Hey,
i tested some with the
captainhook/captainhook-phar
and noticed a bug with a fresh install with multiple packages.For example i have the following composer.json and nothing elese.
after a
composer install
i noticed multiple file downloads with the wrong version.Every(?) packages will trigger the
installOrUpdateFunction
Event and try to install captainhook in the version of the other Package.In this merge request i seperated the Composer V2 and Composer V1 logic into a
OperationPackage
to use it in the PackageVersion and the ConfiguredMediator. I tried to run the cs-fixer, but the cs-fixer will change a lot. So i skipped the cs-fixer.For now every configured package has to use the same
packageName
in thedistributor.xml
as the composer package name. If the name differs, the hook is not triggerd and no installation would be made.In my example, with Captainhook a seperate fix is required to change the package name from
packageName="captainhook/captainhook"
topackageName="captainhook/captainhook-phar"
in the distributor.xml