The ocaml compiler needs to be marked inside the lock dir: $ . ./helpers.sh $ mkrepo To mark it, we use `conflict-class: "ocaml-core-compiler"` $ mkpkg foocaml < conflict-class: "ocaml-core-compiler" > EOF $ solve foocaml Solution for dune.lock: - foocaml.0.0.1 $ grep ocaml dune.lock/lock.dune (ocaml foocaml)