-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The issue was a dependency cycle when a public library copies files from a parent directory using copy_files. The test was that a readible error message is produced in that situation, but it's not necessary that this situation result in a dependency cycle at all. This change moves the test case to its own file and now asserts that the case doesn't result in an error. Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
- Loading branch information
Showing
2 changed files
with
11 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This is a reproduction case from issue #4345 | ||
$ DIR="gh4345" | ||
$ mkdir $DIR && cd $DIR | ||
$ echo "(lang dune 2.8)" > dune-project | ||
$ mkdir lib | ||
$ touch lib.opam file lib/lib.ml | ||
$ cat >lib/dune <<EOF | ||
> (library (name lib) (public_name lib)) | ||
> (copy_files (files ../file)) | ||
> EOF | ||
$ dune build --root . |
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