-
Notifications
You must be signed in to change notification settings - Fork 62
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
Solver hangs with too many repos #628
Comments
I am probably hitting the same issue after adding a cranlike repo with many packages and trying to install a package with a medium to large dep tree. It works when installing a package without or only a few deps. There isn't any debug/verbose mode to narrow down what is happening inside the resolver, is it? |
You can debug the R code as usual ( |
Some notes from the past days: The problem occurs when there are multiple repos sharing many of the same packages but different versions. In this case the solver will consider each possible combination of package versions, resulting in a combinatorial explosion of solutions. Hopefully r-lib/pkgdepends#392 relieves most of the problem. This heuristic filters out the older version of two packages, if they share exactly the same dependencies (and therefore the older version is never part of the solution). Another way to improve the situation is to ensure pak can recognize binary package via a |
OK, things seem to be working well now, so I'll close this issue, until somebody runs into problems again. For the record, some possible improvements:
|
As discussed earlier, I run into a problem where the solver hangs if there are too many
repos
.Would there be a way to give some hint to pak to prevent the combinatorial explosion in the solver?
One way to reproduce is this container:
You can also reproduce it with another container running ubuntu:24.04 and setting:
The text was updated successfully, but these errors were encountered: