Closed uberhacker closed 7 years ago
This fails on projects that have been removed via cgr remove org/proj
. In this case, Composer leaves behind a composer.json with an empty require
section.
What is your suggested fix?
Thinking about it. Perhaps cgr could be more destructive during a remove; however, I think it would be good to detect and skip empty projects.
It would probably be sufficient to just let composer
error out on removed projects as it currently does, as long as cgr info
kept going after one failure. With the current implementation, you don't see the rest of your installed projects once you hit one that has been removed.
Example of acceptable output -- last installed project is removed. Removing the first project causes problems, though.
Thanks for this. Making info
not fail fast would be a worthwhile follow-on exercise if you feel like it. Or wait for something like https://github.com/composer/composer/pull/6001
Coverage decreased (-2.3%) to 91.827% when pulling c4f202ce694300970f08aa1e344eb4d076eaec21 on uberhacker:master into 5fb0d1e7c9c389b7f1c0284410a4bb7d3c63a98d on consolidation:master.