You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this after experiencing timeouts with the default solver (reproducible with opam install irmin-git in some 4.12.1 switch), and diving into opam's /src/solver/ code.
Fortunately, aspcud does work, and makes it possible to obtain a solution in ~20s (unlike builtin-mccs+glpk).
Thanks for the report, the aspcud solver backend is an old piece of code stemming from opam 1.2 that isn't used anymore so I'm guessing nobody really noticed it. It indeed doesn't look right so feel free to open a PR to change this if you want.
#5510 should fix your original issue with mccs though.
A question that arose after a small code review
Shouldn't this line
opam/src/solver/opamCudfSolver.ml
Line 143 in eaa702a
be replaced with
-sum(solution,avoid-version),\
?
because the former one seems to be mccs-specific.
And likewise,
-count[missing-depexts:,true]";
→-sum(solution,missing-depexts)
.Details
module Aspcud_def = struct
opam/src/solver/opamCudfSolver.ml
Lines 127 to 151 in eaa702a
module Mccs_def = struct
opam/src/solver/opamCudfSolver.ml
Lines 180 to 201 in eaa702a
Off-topic context
I noticed this after experiencing timeouts with the default solver (reproducible with
opam install irmin-git
in some 4.12.1 switch), and diving into opam's/src/solver/
code.Fortunately, aspcud does work, and makes it possible to obtain a solution in ~20s (unlike builtin-mccs+glpk).
The text was updated successfully, but these errors were encountered: