Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repro case for #1645 #6021

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 libraries `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]