| 1 |
The following should fail saying that %{read:...} isn't allowed in this |
| 2 |
position, because it was indeed not supported by older versions of Dune. Due to |
| 3 |
improvements in the core of Dune, this is now supported. Because the error used |
| 4 |
to be discovered dynamically as we were trying to evaluate the dependencies, |
| 5 |
the new code simply doesn't detect it. We should add a proper version check for |
| 6 |
this feature. |
| 7 |
|
| 8 |
$ echo "(lang dune 1.6)" > dune-project |
| 9 |
$ cat >dune <<EOF |
| 10 |
> (rule (with-stdout-to foo (echo bar))) |
| 11 |
> (alias |
| 12 |
> (name default) |
| 13 |
> (deps %{read:foo})) |
| 14 |
> EOF |
| 15 |
$ dune build |
| 16 |
Error: No rule found for bar |
| 17 |
-> required by alias default in dune:2 |
| 18 |
[1] |