Skip to content

Commit

Permalink
Add repro case for ocaml#1645
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
emillon committed Jul 28, 2022
1 parent ba17d11 commit 464b309
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions test/blackbox-tests/test-cases/github1645.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
We create two libraires `l.one` and `l.two` with a conflicting module.
They build fine, are not co-linkable, but documentation should be able to be
built. See #1645.

$ cat > dune-project << EOF
> (lang dune 1.0)
> (package (name l))
> EOF

$ mkdir one
$ cat > one/dune << EOF
> (library
> (name l_one)
> (public_name l.one)
> (wrapped false))
> EOF
$ touch one/module.ml

$ mkdir two
$ cat > two/dune << EOF
> (library
> (name l_two)
> (public_name l.two)
> (wrapped false))
> EOF
$ touch two/module.ml

$ dune build @install
$ dune build @doc
Error: Multiple rules generated for
_build/default/_doc/_html/l/Module/.dummy:
- <internal location>
- <internal location>
-> required by alias _doc/_html/l/doc
-> required by alias doc
Error: Multiple rules generated for
_build/default/_doc/_odocls/l/module.odocl:
- <internal location>
- <internal location>
-> required by _build/default/_doc/_html/l/index.html
-> required by alias _doc/_html/l/doc
-> required by alias doc
[1]

0 comments on commit 464b309

Please sign in to comment.