-
Notifications
You must be signed in to change notification settings - Fork 470
MDX does not rebuild when the prelude changes #7077
Copy link
Copy link
Closed
ocaml/opam-repository
#23622Labels
mdxRelated to the internal mdx pluginRelated to the internal mdx plugin
Description
Expected Behavior
When using (mdx (preludes prelude.ml) ...), changing prelude.ml should cause the tests to be run again.
Actual Behavior
It ignores this and you have to do dune clean first.
Reproduction
$ ls
dune dune-project prelude.ml README.md
$ cat dune
(mdx
(preludes prelude.ml)
(files README.md))
$ cat dune-project
(lang dune 3.6)
(using mdx 0.3)
$ cat prelude.ml
let foo () = 1
$ cat README.md
```ocaml
# foo();;
- : int = 1
$ dune runtest
$ echo 'let foo () = 2' > prelude.ml
$ dune runtest
$ dune clean; dune runtest
File "README.md", line 1, characters 0-0:
...
Specifications
- Version of
dune(output ofdune --version): 3.6.2 - Version of
ocaml(output ofocamlc --version): 5.0.0 - Operating system (distribution and version): Debian 11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
mdxRelated to the internal mdx pluginRelated to the internal mdx plugin