This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,28 @@
Rules with targets outside the build directory are dot allowed.
$ echo '(lang dune 1.10)' > dune-project
$ cat > dune <<EOF
> (rule (with-stdout-to /abs/path (system "echo toto")))
> EOF
$ dune build @all
File "dune", line 1, characters 22-31:
1 | (rule (with-stdout-to /abs/path (system "echo toto")))
^^^^^^^^^
Error: Target /abs/path is outside the build directory. This is not allowed.
[1]
Rules with targets whose names clash with Dune's internal directories
are not allowed.
$ cat > dune <<EOF
> (rule (with-stdout-to .dune (system "echo toto")))
> EOF
$ dune build @all
File "dune", line 1, characters 0-50:
1 | (rule (with-stdout-to .dune (system "echo toto")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: This rule defines a target ".dune" whose name conflicts with an
internal directory used by Dune. Please use a different name.
[1]