barryvdh / composer-cleanup-plugin

Composer plugin for cleaning up unused files from packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support composer 2

andrew-demb opened this issue · comments

"composer-plugin-api": "^1.0"

I would need it as well 👍

Can you try with 0.3?

Thanks for taking care of it. Unfortunately, it fails when composer tries to install v0.3

Fatal error: Undefined class constant 'POST_PACKAGE_INSTALL' in /var/www/vendor/barryvdh/composer-cleanup-plugin/src/CleanupPlugin.php on line 62

It looks like this constant has been removed in composer v2: composer/composer@4e8a365#diff-b7a15bd45731ef8a996435e9871474929de430b76732afff1053b4898fb3777dL152

What is the status of this issue?

The issue is fixed in #28 . You can test it on my branch or wait @barryvdh for the merge