composer icon indicating copy to clipboard operation
composer copied to clipboard

Add failing test and fix attempt

Open Seldaek opened this issue 2 years ago • 0 comments

Refs https://github.com/sebastianbergmann/phpunit/pull/5661

Providers which are not required by anything should not be installable. However the only way to fix this is to make every package require back everything that requires it, to avoid dangling providers being selected.

This may use up too much memory and CPU to be worth fixing, but we'll try here.. This first attempt works for the new test but it does break other things:

  • removal of unused packages, I assume because they now have back-requires keeping them selected
  • detection of dev require vs require, also probably due to the back requires making it all appear to be non-dev requires

Seldaek avatar Jan 17 '24 10:01 Seldaek