When trying to build something with dune, if there is a copy_files# anywhere in the project that can't access the files to copy, a message saying there is a recursive dependency is printed. I find the message misleading.
$ dune build demo.exe
Recursive dependency between directories:
no_dir
--> .
$ tree
.
├── _build
│ └── log
├── demo.ml
├── dune
└── dune-project
dune:
(copy_files# "no_dir/*")
(executable (name demo))
demo.ml: