This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,34 @@
$ cat > a
$ cat > b
$ cat > dune-project << EOF
> (lang dune 3.9)
> EOF
It should be possible to expand %{deps} in a cat action since it allows multiple
arguments.
$ cat > dune <<EOF
> (rule
> (alias foo)
> (deps a b)
> (action
> (cat %{deps})))
> EOF
This isn't possible in 3.9.
$ dune build @foo
File "dune", line 5, characters 7-14:
5 | (cat %{deps})))
^^^^^^^
Error: Variable %{deps} expands to 2 values, however a single value is
expected here. Please quote this atom.
[1]
But it is in 3.10:
$ cat > dune-project << EOF
> (lang dune 3.10)
> EOF
$ dune build @foo