-
Notifications
You must be signed in to change notification settings - Fork 470
MDX stanza executable fails to build with (implicit_transitive_deps false) #5499
Copy link
Copy link
Closed
ocaml/opam-repository
#21217Description
Building the executable generated by the MDX stanza fails when implicit transitive dependencies are disabled due to an implicit dependency on the mdx.top library:
$ cat >dune-project <<EOF
> (lang dune 3.0)
> (using mdx 0.2)
> (implicit_transitive_deps false)
> EOF
$ cat >markdown_file.md <<EOF
> ```ocaml
> # print_endline "Hello world" ;;
> ```
> EOF
$ cat >dune <<EOF
> (mdx
> (files markdown_file.md))
> EOF
$ dune build
File "mdx_gen.ml-gen", line 28, characters 2-19:
28 | Mdx_top.Directory path) []
^^^^^^^^^^^^^^^^^
Error: Unbound module Mdx_top
Hint: Did you mean Mdx_test?
[1]
Adding mdx.top as an explicit dependency of the stanza fixes the issue:
$ cat >dune <<EOF
> (mdx
> (files markdown_file.md)
> (libraries mdx.top))
> EOF
$ dune build
CC @NathanReb.
Reproduction
Included in #5500.
Specifications
- Version of
dune(output ofdune --version): 3.03 - Version of
ocaml(output ofocamlc --version): 4.10.0 - Operating system (distribution and version): Arch Linux (5.15.12-arch1-1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels