Skip to content

Fix some MDX 2.4 revdep failures #25459

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

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

Leonidas-from-XIV
Copy link
Contributor

While investigating possible regressions in dune 3.4.1 I ran into some new failures that I have tracked down to be not caused by dune but rather MDX 2.4.0: #25355 so this PR fixes some of the most obvious ones.

With MDX 2.4

File "README.md", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/README.md _build/default/.mdx/README.md.corrected
diff --git a/_build/default/README.md b/_build/default/.mdx/README.md.corrected
index 6fbadb3..eda1f2d 100644
--- a/_build/default/README.md
+++ b/_build/default/.mdx/README.md.corrected
@@ -52,6 +52,10 @@ let cas = List.map decode_pem Ca_store.certificates in
 let authenticator = X509.Authenticator.chain_of_trust ~time cas in
 (* ... *)
 ```
+```mdx-error
+Line 9, characters 1-3:
+Error: Syntax error
+```

 ## Acknowledgements
Fails with:

File "README.md", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/README.md _build/default/.mdx/README.md.corrected
diff --git a/_build/default/README.md b/_build/default/.mdx/README.md.corrected
index 9f12cc7..1f9ff06 100644
--- a/_build/default/README.md
+++ b/_build/default/.mdx/README.md.corrected
@@ -1509,6 +1509,10 @@ let main ~config_changed =
       )
   done
 ```
+```mdx-error
+Line 15, characters 12-23:
+Error: Unbound value load_config
+```

 Unlike the cancellation case above, where we used `Fiber.first`,
 here we use `Fiber.both` to wait until we have both read the previous version of the configuration
@@ -1560,6 +1564,7 @@ It can then be used like any other Eio flow:
   let r = Eio.Buf_read.of_flow zero ~max_size:100 in
   traceln "Got: %S" (Eio.Buf_read.take 4 r);;
 +Got: "\000\000\000\000"
+
 - : unit = ()
 ```
@Leonidas-from-XIV
Copy link
Contributor Author

There's a bunch more broken test cases that I saw, in grpc-examples, irmin-cli and pretty_expressive if a maintainer wishes to fix them.

@mseri
Copy link
Member

mseri commented Mar 13, 2024

Thanks

@mseri
Copy link
Member

mseri commented Mar 13, 2024

Thanks!

@mseri mseri merged commit 26a105a into ocaml:master Mar 13, 2024
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants