This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,37 @@
|
|||
The @check alias should detect dependency cycles
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.2)
|
||||
> EOF
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (library (name foo))
|
||||
> EOF
|
||||
|
||||
$ cat >a.ml <<EOF
|
||||
> module B = B
|
||||
> EOF
|
||||
|
||||
$ touch b.ml b.mli a.mli
|
||||
|
||||
$ dune build @all
|
||||
|
||||
$ cat >b.ml <<EOF
|
||||
> module A = A
|
||||
> EOF
|
||||
|
||||
$ dune build @check
|
||||
Error: dependency cycle between modules in _build/default:
|
||||
B
|
||||
-> A
|
||||
-> B
|
||||
-> required by alias check
|
||||
[1]
|
||||
$ dune build @all
|
||||
Error: dependency cycle between modules in _build/default:
|
||||
B
|
||||
-> A
|
||||
-> B
|
||||
-> required by _build/default/foo.cma
|
||||
-> required by alias all
|
||||
[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue