Skip to content

Commit

Permalink
refactor: process conflicts in original order
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Jan 10, 2025
1 parent 4a53d07 commit 8a12dfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/0install-solver/solver_core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ module Make (Model : S.SOLVER_INPUT) = struct
not process any transitive dependencies here since the dependencies of
restricting dependencies are irrelevant to solving the dependency
problem. *)
Fiber.sequential_iter !conflicts ~f:(fun (impl_var, dep) ->
List.rev !conflicts
|> Fiber.sequential_iter ~f:(fun (impl_var, dep) ->
process_dep `No_expand impl_var dep)
(* All impl_candidates have now been added, so snapshot the cache. *)
in
Expand Down

0 comments on commit 8a12dfc

Please sign in to comment.