Open Hanmac opened 1 year ago
I can confirm the problem:
composer require --dev composer-unused/composer-unused-plugin
./composer.json has been updated
Running composer update composer-unused/composer-unused-plugin
Loading composer repositories with package information
Updating dependencies
Lock file operations: 7 installs, 0 updates, 0 removals
- Locking composer-unused/composer-unused-plugin (0.8.11)
- Locking composer-unused/contracts (0.3.0)
- Locking composer-unused/symbol-parser (0.2.5)
- Locking icanhazstring/composer-unused (0.8.11)
- Locking ondram/ci-detector (4.2.0)
- Locking symfony/validator (v7.1.1)
- Locking webmozart/glob (4.7.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
- Downloading composer-unused/composer-unused-plugin (0.8.11)
- Installing webmozart/glob (4.7.0): Extracting archive
- Installing symfony/validator (v7.1.1): Extracting archive
- Installing ondram/ci-detector (4.2.0): Extracting archive
- Installing composer-unused/contracts (0.3.0): Extracting archive
- Installing composer-unused/symbol-parser (0.2.5): Extracting archive
- Installing icanhazstring/composer-unused (0.8.11): Extracting archive
composer-unused/composer-unused-plugin contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "composer-unused/composer-unused-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
- Installing composer-unused/composer-unused-plugin (0.8.11): Extracting archive
Install of composer-unused/composer-unused-plugin failed
In container.php line 10:
[Error]
Class "__ComposerUnused__\Symfony\Component\DependencyInjection\ContainerBuilder" not found
Exception trace:
at phar:///.../vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:10
ComposerUnused\ComposerUnusedPlugin\UnusedPlugin::__ComposerUnused__\{closure}() at phar:///.../vendor/composer-unused/composer-unused-plugin/composer-unused.phar/config/container.php:18
require() at /.../vendor/composer-unused/composer-unused-plugin/src/UnusedPlugin.php:36
ComposerUnused\ComposerUnusedPlugin\UnusedPlugin->activate() at phar:///.../composer/src/Composer/Plugin/PluginManager.php:392
Composer\Plugin\PluginManager->addPlugin() at phar:///.../composer/src/Composer/Plugin/PluginManager.php:296
Composer\Plugin\PluginManager->registerPackage() at phar:///.../composer/src/Composer/Installer/PluginInstaller.php:90
😭
Originally posted by @Hanmac in https://github.com/composer-unused/composer-unused/issues/451#issuecomment-1678838732