Skip to content

Commit

Permalink
Fix (at least some of the) empty conflict explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jan 19, 2022
1 parent b77f6d4 commit 64cf433
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ users)
## Client
* Check whether the repository might need updating more often [#4935 @kit-ty-kate]
* ✘ It is no longer possible to process actions on packages that depend on a package that was removed upstream [#4969 @altgr]
* Fix (at least some of the) empty conflict explanations [#4982 @kit-ty-kate]

## Internal
* Add license and lowerbounds to opam files [#4714 @kit-ty-kate]
Expand Down
5 changes: 4 additions & 1 deletion src/solver/opamCudf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,10 @@ let extract_explanations packages cudfnv2opam reasons : explanation list =
Map.update pkg (CS.union chain) CS.empty acc
in
let ds = get deps p in
let dsc = ds %% all_conflicting in
let dsc = match Hashtbl.length missing with
| 0 -> ds (* Hack to fix https://github.com/ocaml/opam/issues/4373. We should try to do better at some point *)
| _ -> ds %% all_conflicting
in
if not (Set.is_empty dsc) then
dsc ++ seen1, Set.fold append_to_chains (dsc -- seen1) new_chains
else
Expand Down

0 comments on commit 64cf433

Please sign in to comment.