mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/ocaml-syntax/github2938.t
2025-11-11 02:07:51 +01:00

17 lines
468 B
Perl

Demonstrate that it's not possible to generate the (dirs ..) stanza using the
dune syntax.
$ cat >dune-project <<EOF
> (lang dune 2.7)
> EOF
$ cat >dune <<EOF
> (* -*- tuareg -*- *)
> let () = Jbuild_plugin.V1.send {|(dirs foo)|}
> EOF
$ dune build
File "_build/.dune/default/dune", line 1, characters 0-10:
1 | (dirs foo)
^^^^^^^^^^
Error: stanza "dirs" may not appear in (include ..) or be generated with
OCaml syntax dune files
[1]