-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bin/composer-unused not working when composer/composer not present #250
Comments
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
Will probably try to introduce a backward compatible change to the binary to avoid releasing 0.8 only for that. |
@icanhazstring I actually use the composer bin plugin to install it, so I can have a fixed version and do not need to manually download it. This means I really would prefer the binary to be installed in the future too as it is kind of tricky to load the plugin inside a plugin for the original root composer.json |
@icanhazstring Ok. so a separate binary will still be available in the future too and not only as composer plugin? |
Yes, probably going to integrate symfony/console directly, and adding a new command into composer/console |
@icanhazstring During installation with composer, if I switch to the fix branch in the require section, I get |
@icanhazstring OK. If I switched the preferred-install to src for the package it worked, maybe the file is ignored in gitattributes or similar? however, I get a TypeError that the first argument of symfony process must be an array but a string is given. Maybe you want to use |
@icanhazstring OK. If I use This can be bypassed by starting it from the corresponding subdirectory but then the wrong directory / composer.json is analyzed regarding unused dependencies and I don't think there is an easy solution to specifying a different composer.json to be analyzed? |
Not as easy tho. |
Well there is basically:
Now I want to run the command maybe also a bug in composer bin plugin because the unused plugin is not available through the composer bin plugin namespace. It was working fine with I think the only permanent solution would be to make the unused plugin available as symfony console command or similar, instead of a plugin at all. |
Thanks for your feedback. Will create a new issue, pointing to this to remove dependency on |
Starting with 0.8 the requirement to |
Describe the bug
Currently
composer/composer
is used to "fake" a composer executable using thebin/composer-unused
binary.This is not possible anymore as the dependency to it was moved to dev to avoid conflicting while installing the tool.
The binary should be removed altogether an only bundled with the phar archive where
composer/composer
is shipped with.If installed as plugin
composer unused
should be the way to go.The text was updated successfully, but these errors were encountered: