Skip to content

Commit

Permalink
Set the root_dir in the OPAM state
Browse files Browse the repository at this point in the history
If not set then OPAM does not set the right path for the OPAM root and
will use the default `~/.opam` no matter what. The OPAM API is
surprising in this regard that even passing the root folder to
`load_defaults` does not actually end up setting the folder.

Closes tarides#197
  • Loading branch information
Leonidas-from-XIV committed Sep 20, 2021
1 parent df7b8fd commit f3597cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/opam_monorepo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let init_opam () =
OpamFormatConfig.init ();
OpamCoreConfig.init ~safe_mode:true ();
OpamRepositoryConfig.init ();
OpamStateConfig.init ()
OpamStateConfig.init ~root_dir:root ()

let () =
init_opam ();
Expand Down

0 comments on commit f3597cb

Please sign in to comment.