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,14 @@
Reproduction case for #2061. Make sure dune errors out when a rule in
standard mode produces multiple files and only a strict subset of them
is in the source tree.
Before Dune 2.0, Dune was trying to be clever. However, this was more
confusing than anything.
$ echo '(lang dune 1.10)' > dune-project
$ dune build a
Error: Multiple rules generated for _build/default/a:
- dune:1
- file present in source tree
Hint: rm -f a
[1]