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,25 @@
Reproduction case for #2499: dune doesn't cleanup stale directories
$ cat >dune-project <<EOF
> (lang dune 2.0)
> EOF
$ cat >dune <<EOF
> (data_only_dirs data)
> (rule
> (deps (source_tree data))
> (action (with-stdout-to list (system "find data -type f | sort"))))
> EOF
$ mkdir -p data/a data/b; touch data/a/x data/b/x
$ dune build list
$ cat _build/default/list
data/a/x
data/b/x
$ rm -rf data/b
$ dune build list
$ cat _build/default/list
data/a/x