Skip to content

fix(mdx): record runtime dependency to prelude - #7109

Merged
emillon merged 1 commit into
ocaml:mainfrom
emillon:fix-7077
Feb 20, 2023
Merged

emillon merged 1 commit into
ocaml:mainfrom
emillon:fix-7077

Conversation

@emillon

@emillon emillon commented Feb 17, 2023

Copy link
Copy Markdown
Collaborator

When mdx is used in program-generation mode (version >= 0.2), the paths used as preludes are recorded in the executable, but the contents of files are only read when the program is executed. This adds the missing dependencies.

Fixes #7077

@emillon emillon added the mdx Related to the internal mdx plugin label Feb 17, 2023
@emillon
emillon requested a review from rgrinberg February 17, 2023 15:28

@rgrinberg rgrinberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a Change list entry.

Comment thread src/dune_rules/mdx.ml Resolved
When mdx is used in program-generation mode (version >= 0.2), the paths
used as preludes are recorded in the executable, but the contents of
files are only read when the program is executed. This adds the missing
dependencies.

Fixes ocaml#7077

Signed-off-by: Etienne Millon <[email protected]>
@emillon emillon changed the title mdx: record runtime dependency to prelude fix(mdx): record runtime dependency to prelude Feb 20, 2023
@emillon
emillon merged commit f30803b into ocaml:main Feb 20, 2023
@emillon
emillon deleted the fix-7077 branch February 20, 2023 15:38
moyodiallo pushed a commit to moyodiallo/dune that referenced this pull request Apr 3, 2023
When mdx is used in program-generation mode (version >= 0.2), the paths
used as preludes are recorded in the executable, but the contents of
files are only read when the program is executed. This adds the missing
dependencies.

Fixes ocaml#7077

Signed-off-by: Etienne Millon <[email protected]>
emillon added a commit to emillon/opam-repository that referenced this pull request Apr 4, 2023
…, dune-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info, dune-action-plugin and chrome-trace (3.7.1)

CHANGES:

- Fix segfault on MacOS when dune was being shutdown while in watch mode.
  (ocaml/dune#7312, fixes ocaml/dune#6151, @gridbugs, @emillon)

- Fix preludes not being recorded as dependencies in the `(mdx)` stanza (ocaml/dune#7109,
  fixes ocaml/dune#7077, @emillon).

- Pass correct flags when compiling `stdlib.ml`. (ocaml/dune#7241, @emillon)

- Handle "Too many links" errors when using Dune cache on Windows.  The fix in
  3.7.0 for this same issue was not effective due to a typo. (ocaml/dune#7472, @nojb)
@Alizter Alizter added this to the 3.7.1 milestone Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mdx Related to the internal mdx plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MDX does not rebuild when the prelude changes

3 participants