Debian Codegraph @

test/blackbox-tests/test-cases/directory-targets/old-style/no-overlapping-rules.t/run.t

raw
1 We should not be able to produce a directory in a rule that already exists
2
3 $ dune build
4 File "dune", lines 5-7, characters 0-51:
5 5 | (rule
6 6 | (targets dir)
7 7 | (action (run ./foo.exe dir)))
8 Error: This rule defines a target "dir" whose name conflicts with a source
9 directory in the same directory.
10 Hint: If you want Dune to generate and replace "dir", add (mode promote) to
11 the rule stanza. Alternatively, you can delete "dir" from the source tree or
12 change the rule to generate a different target.
13 [1]
14