pickware / shopware

Shopware Repository
http://www.shopware.com
Other
0 stars 0 forks source link

`composer install -o` not excluding plugin directories from autoloader #65

Closed svenmuennich closed 5 years ago

svenmuennich commented 6 years ago

For some time now we repeatedly ran into an issue with the composer autoloader. When running composer install -o (-o = --optimize-autoloader), composer includes the files of all installed plugins, even though they are excluded from the autoloader in the composer.json:

https://github.com/shopware/shopware/blob/8efbe6a850a9ca72701efd24d56aaa10408f9192/composer.json#L100-L104

We should investigate what causes this behaviour. My guess is, that it's a bug that was introduced in a recent composer version, since Shopware hasn't changed the respective part of their composer.json in a while.

svenmuennich commented 6 years ago

This behaviour is caused by a change in composer v1.5.0: composer/composer@bf940fb21b0dcc830e8c8430a3cc9d7f3ac607c0

svenmuennich commented 6 years ago

Please also see my comment in composer/composer#6397

svenmuennich commented 5 years ago

This has been fixed in version 1.5.0 of composer :)