-
Notifications
You must be signed in to change notification settings - Fork 470
Clean needed when turning a directory into a file #6575
Copy link
Copy link
Closed
Description
Changing a directory test to a single-file test with the same name requires a dune clean:
Given a working directory cram test:
$ mkdir sometest.t
$ cat >sometest.t/run.t <<EOF
> $ echo "foobar"
> foobar
> EOF
$ dune build @sometest
We turn it into a single-file test:
$ mv sometest.t sometest.t.bak
$ mv sometest.t.bak/run.t sometest.t
$ rm -r sometest.t.bak
FIXME: Dune should detect the change:
$ dune build @sometest
Error: _build/default/sometest.t: Is a directory
-> required by _build/default/sometest.t
-> required by alias sometest
[1]
After a clean it works as expected:
$ dune clean
$ dune build @sometestSpecifications
-
Version of
dune: main (3.6.0-85-gdd6f976) -
Version of
ocaml: 4.14 -
Operating system: Macos (M1)
-
Link to gist with verbose output (run
dunewith the--verboseflag):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels