Skip to content

Commit

Permalink
feat: continue on unknown depencies (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejager authored Jan 30, 2024
1 parent d39c732 commit 7472c04
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/solver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,13 @@ impl<VS: VersionSet, N: PackageName + Display, D: DependencyProvider<VS, N>> Sol
// Exclusions are negative assertions, tracked outside of the watcher system
self.negative_assertions.push((solvable_id, clause_id));

// There might be a conflict now
let conflicts = if self.decision_tracker.assigned_value(solvable_id)
== Some(true)
{
vec![clause_id]
} else {
Vec::new()
};

// The new assertion should be kept in all cases (it is returned in the
// lhs of the tuple), and a conflicts should be reported if present (rhs
// of the tuple)
return Ok((vec![clause_id], conflicts));
new_clauses.push(clause_id);

if self.decision_tracker.assigned_value(solvable_id) == Some(true) {
conflicting_clauses.push(clause_id);
}

continue;
}
}
}
Expand Down

0 comments on commit 7472c04

Please sign in to comment.