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
{{ message }}
Repository navigation
Solver backjumps too far when linked packages have different flag assignments #2834
I wrote a test case that reproduces the problem: sebright@14e9d32 The solver doesn't find a solution.
The type D.C.Dependency.Modular.Dependency.Var can represent a flag variable. When Var is used in a conflict set, the name of the flag is usually simplified to "flag" to simplify the logic dealing with dependencies between flags. However, when a flag choice causes a linked dependency to have an inconsistent flag value, the solver creates a conflict set containing non-simplified Vars. The mismatch in flag names prevents the solver from finding the flag variables in the conflict set during backjumping. It backtracks past those variables, skipping the other possible flag assignments.
I'm interested in working on this. Does it make sense to create a SimpleVar type that does not contain the flag name and is only used in conflict sets?
Activity
23Skidoo commentedon Sep 23, 2015
/cc @kosmikus
kosmikus commentedon Oct 12, 2015
/cc @edsko
kosmikus commentedon Mar 5, 2016
Also going to try to look at this.
edsko commentedon Mar 19, 2016
I'm going to take a look at this now.
sebright commentedon Apr 23, 2016
Fixed by #3357.