---------------------------------------------------------------------------------- Testsuite for https://github.com/ocaml/dune/issues/2848 (copy_files ...) cannot copy files onto themselves. The format for the argument is / where is not the current directory. $ cat >sdune <<'EOF' > #!/usr/bin/env bash > DUNE_SANDBOX=symlink dune "$@" > EOF $ chmod +x sdune ---------------------------------------------------------------------------------- * Good error message when is the current directory $ echo "(lang dune 2.2)" > dune-project $ cat >dune < (executable (name foo)) > (copy_files sub) > EOF $ cat >foo.ml < let () = Bar.bar () > EOF $ mkdir -p sub $ cat >sub/bar.ml < let bar () = print_endline "Hello, world!" > EOF $ ./sdune build File "dune", line 2, characters 12-15: 2 | (copy_files sub) ^^^ Error: Cannot copy files onto themselves. The format is / where is not the current directory. [1] ---------------------------------------------------------------------------------- * Good error message when is missing $ echo "(lang dune 2.2)" > dune-project $ cat >dune < (executable (name foo)) > (copy_files bar.{ml}) > EOF $ ./sdune build File "dune", line 2, characters 12-20: 2 | (copy_files bar.{ml}) ^^^^^^^^ Error: Cannot copy files onto themselves. The format is / where is not the current directory. [1]