-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Composer2: InvalidArgumentException when plugin install fails #8764
Comments
I had a bug in my own plugin (a file was not included so a function was not defined), I think that's why I got this line:
Now that it's fixed the installation completes with no problem. I let this issue open because I think the error message was misleading and could be improved. Feel free to close it if you think otherwise. |
Well, the thing is, the bug in the cleanup means that the original error git hidden by it (because the cleanup logic running before rethrowing the original error is throwing itself). |
See my comment in #8766 |
Should work with latest snapshot, well the plugin install might still fail but at least you should see the real error. |
Related to #8726 .
I'm testing my plugin with Composer 2:
Now if I remove the plugin and add it again then it works:
Also I have no error if I remove the
repositories
section before executing the install command.The text was updated successfully, but these errors were encountered: