Reproduce #10839. Dune file in OCaml syntax and a files directory should work $ . ./helpers.sh $ make_lockdir $ make_lockpkg base-bytes < (version base) > > (depends ocamlfind) > EOF $ make_lockpkg ocamlfind < (version 1) > EOF $ cat >dune-project < (lang dune 3.16) > EOF $ cat >dune < (* -*- tuareg -*- *) > let () = Jbuild_plugin.V1.send "" > EOF $ dune build $ mkdir dune.lock/ocamlfind.files $ touch dune.lock/ocamlfind.files/foo.patch $ dune build