Skip to content

Commit 21f5927

Browse files
authored
test: promote and subdir (#6222)
Try to promote into a source directory that doesn't exist by setting up the rule with `subdir`. Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 1907b42 commit 21f5927

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Test of a rule that tries to promote to a source directory that doesn't exist.
2+
3+
Taken from #3502
4+
$ cat >dune-project <<EOF
5+
> (lang dune 3.4)
6+
> EOF
7+
$ cat >dune <<EOF
8+
> (subdir x
9+
> (rule
10+
> (mode (promote (until-clean)))
11+
> (action (with-stdout-to y (echo "z")))))
12+
> EOF
13+
$ dune build x/y
14+
Error: x/.#y.dune-temp: No such file or directory
15+
-> required by _build/default/x/y
16+
[1]
17+
$ cat x/y
18+
cat: x/y: No such file or directory
19+
[1]

0 commit comments

Comments
 (0)