Debian Codegraph @

test/blackbox-tests/test-cases/stanzas/mdx-stanza/new-deps-field.t/run.t

raw
1 Since version 0.2 the mdx stanza supports a more generic `deps` field.
2 A deprecation warning is raised if using the olf `packages` field.
3
4 $ cat >dune-project <<EOF
5 > (lang dune 3.0)
6 > (using mdx 0.2)
7 > (cram disable)
8 > EOF
9
10 $ dune runtest
11 File "dune", line 4, characters 1-15:
12 4 | (packages pkg))
13 ^^^^^^^^^^^^^^
14 Warning: 'packages' was deprecated in version 0.2 of mdx extension to verify
15 code blocks in .md files.
16
17 But using the new field with the old stanza would fail
18
19 $ cat >dune-project <<EOF
20 > (lang dune 2.8)
21 > (using mdx 0.1)
22 > EOF
23
24 $ dune runtest
25 File "dune", line 3, characters 1-22:
26 3 | (deps (package pkg2))
27 ^^^^^^^^^^^^^^^^^^^^^
28 Error: 'deps' is only available since version 0.2 of mdx extension to verify
29 code blocks in .md files. Please update your dune-project file to have (using
30 mdx 0.2).
31 [1]