forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a (locks) field to the mdx stanza. This field is versioned against the extension. Closes ocaml#5489 Signed-off-by: Etienne Millon <[email protected]>
- Loading branch information
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Version 0.2 of the mdx stanza does not support (locks): | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.2) | ||
> (using mdx 0.2) | ||
> EOF | ||
|
||
$ cat > dune << EOF | ||
> (mdx | ||
> (locks l)) | ||
> EOF | ||
|
||
$ dune build | ||
File "dune", line 2, characters 1-10: | ||
2 | (locks l)) | ||
^^^^^^^^^ | ||
Error: 'locks' is only available since version 0.3 of mdx extension to verify | ||
code blocks in .md files. Please update your dune-project file to have (using | ||
mdx 0.3). | ||
[1] | ||
|
||
In version 0.3, it is accepted: | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.2) | ||
> (using mdx 0.3) | ||
> EOF | ||
|
||
$ dune build |