Skip to content

Commit

Permalink
Fix a failure when using opam-monorepo with an opam 2.2 root
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Mar 22, 2023
1 parent 9cc963c commit 31e75db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
- Error in case where multiple packages with different dev-repo fields would be
placed in the same duniverse directory (#377, @gridbugs)

- Fix a failure when using opam-monorepo with an opam 2.2 root
(#379, @kit-ty-kate)

### Removed

### Security
Expand Down
2 changes: 1 addition & 1 deletion bin/opam_monorepo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let cmds = [ Lock.cmd; Pull.cmd; Depext.cmd; List_cmd.cmd ]
let init_opam () =
OpamSystem.init ();
let root = OpamStateConfig.opamroot () in
ignore (OpamStateConfig.load_defaults root);
ignore (OpamStateConfig.load_defaults ~lock_kind:`Lock_read root);
OpamFormatConfig.init ();
OpamCoreConfig.init ~safe_mode:true ();
OpamRepositoryConfig.init ();
Expand Down

0 comments on commit 31e75db

Please sign in to comment.