-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeremie Dimino <[email protected]>
- Loading branch information
1 parent
3f81ce1
commit fffb8e9
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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,b} | ||
$ touch data/{a,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 | ||
data/b/x |