Skip to content

Commit

Permalink
fix: allow to override partially the setup config (ocaml#10229)
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
  • Loading branch information
moyodiallo committed Mar 15, 2024
1 parent 6848420 commit 37227c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/install_uninstall.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ let get_dirs context ~prefix_from_command_line ~from_command_line =
match prefix_from_command_line with
| None -> Memo.run (Context.roots context)
| Some prefix ->
let setup_roots =
Roots.map ~f:(Option.map ~f:Path.of_string) Dune_rules.Setup.roots
in
Roots.opam_from_prefix prefix ~relative:Path.relative
|> Roots.map ~f:(fun s -> Some s)
|> Roots.first_has_priority setup_roots
|> Fiber.return
in
let roots = Roots.first_has_priority from_command_line roots in
Expand Down

0 comments on commit 37227c0

Please sign in to comment.