This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
An action with source dependencies that are generated outside of dune
|
||||
should work if wrapped in (no-infer ...) but not otherwise.
|
||||
|
||||
$ cat > dune-project << EOF
|
||||
> (lang dune 2.6)
|
||||
> EOF
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (rule
|
||||
> (targets target)
|
||||
> (action
|
||||
> (progn
|
||||
> (run touch source)
|
||||
> (copy source target))))
|
||||
> EOF
|
||||
|
||||
$ dune build --root .
|
||||
File "dune", lines 1-6, characters 0-90:
|
||||
1 | (rule
|
||||
2 | (targets target)
|
||||
3 | (action
|
||||
4 | (progn
|
||||
5 | (run touch source)
|
||||
6 | (copy source target))))
|
||||
Error: No rule found for source
|
||||
[1]
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (rule
|
||||
> (targets target)
|
||||
> (action
|
||||
> (no-infer
|
||||
> (progn
|
||||
> (run touch source)
|
||||
> (copy source target)))))
|
||||
> EOF
|
||||
|
||||
$ dune build --root .
|
||||
Loading…
Add table
Add a link
Reference in a new issue