Duplicate theories should be caught by Dune: $ cat > dune << EOF > (rocq.theory > (name foo)) > > (rocq.theory > (name foo)) > EOF BUG The directory target is found before the theory $ dune build Error: Rocq theory foo is defined twice: - theory foo in dune:5 - theory foo in dune:2 [1]