Skip to content

Commit

Permalink
Merge pull request #379 from kit-ty-kate/opam-2.2-root
Browse files Browse the repository at this point in the history
Fix a failure when using opam-monorepo with an opam 2.2 root
  • Loading branch information
Leonidas-from-XIV authored Mar 22, 2023
2 parents 9cc963c + 31e75db commit df43741
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 df43741

Please sign in to comment.