| 1 |
The libraries field is deprecated |
| 2 |
$ cat > dune << EOF |
| 3 |
> (library |
| 4 |
> (public_name bar.foo) |
| 5 |
> (name foo)) |
| 6 |
> |
| 7 |
> (rocq.theory |
| 8 |
> (name bar) |
| 9 |
> (libraries bar.foo)) |
| 10 |
> EOF |
| 11 |
|
| 12 |
$ dune build |
| 13 |
File "dune", line 7, characters 2-11: |
| 14 |
7 | (libraries bar.foo)) |
| 15 |
^^^^^^^^^ |
| 16 |
Error: Unknown field "libraries" |
| 17 |
[1] |
| 18 |
|
| 19 |
Having both a libraries and plugins field is an error |
| 20 |
$ cat > dune << EOF |
| 21 |
> (library |
| 22 |
> (public_name bar.foo) |
| 23 |
> (name foo)) |
| 24 |
> |
| 25 |
> (rocq.theory |
| 26 |
> (name bar) |
| 27 |
> (libraries bar.foo) |
| 28 |
> (plugins bar.foo)) |
| 29 |
> EOF |
| 30 |
|
| 31 |
$ dune build |
| 32 |
File "dune", line 7, characters 2-11: |
| 33 |
7 | (libraries bar.foo) |
| 34 |
^^^^^^^^^ |
| 35 |
Error: Unknown field "libraries" |
| 36 |
[1] |
| 37 |
|