Skip to content

Commit 1c359df

Browse files
authored
test: repro #11523 (symlinks in directory targets) (#11524)
Signed-off-by: Etienne Millon <[email protected]>
1 parent c19917f commit 1c359df

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Symlinks in directory targets should go in the shared cache.
2+
3+
See #11523.
4+
5+
$ export DUNE_CACHE_ROOT=$PWD/.cache
6+
$ export DUNE_CACHE=enabled
7+
8+
$ cat > dune-project << EOF
9+
> (lang dune 3.0)
10+
> (using directory-targets 0.1)
11+
> EOF
12+
13+
$ cat > dune << EOF
14+
> (rule
15+
> (target (dir d))
16+
> (action
17+
> (progn
18+
> (run mkdir -p d)
19+
> (chdir d
20+
> (progn
21+
> (echo building)
22+
> (run touch target)
23+
> (run ln -s target symlink))))))
24+
> EOF
25+
26+
$ dune build d
27+
building
28+
29+
$ dune clean
30+
31+
$ dune build d
32+
building

0 commit comments

Comments
 (0)