Skip to content

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

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

fix(mdx): record runtime dependency to prelude#7109
emillon merged 1 commit intoocaml:mainfrom
emillon:fix-7077

Conversation

@emillon
Copy link
Copy Markdown
Collaborator

@emillon emillon commented Feb 17, 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 #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
Copy link
Copy Markdown
Member

@rgrinberg rgrinberg left a comment

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.

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 <me@emillon.org>
@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 <me@emillon.org>
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)
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

2 participants