This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
;; This test erroneously modify one of its dependencies
|
||||
(alias
|
||||
(name x)
|
||||
(deps data (universe))
|
||||
(action (system "\| echo hello >> data
|
||||
"\| # To force the mtime to change:
|
||||
"\| # https://github.com/ocaml/dune/pull/1359
|
||||
"\| touch -t 01010000 data
|
||||
)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.0)
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
In this test the "x" alias depends on the file "data" but the action
|
||||
associated to "x" appends a line to "data". The expected behavior is
|
||||
an error from Dune telling the user that this is not allowed, however
|
||||
Dune currently silently ignores this.
|
||||
|
||||
$ echo hello > data
|
||||
$ dune build @x
|
||||
$ cat _build/default/data
|
||||
hello
|
||||
hello
|
||||
|
||||
$ dune build @x
|
||||
$ cat _build/default/data
|
||||
hello
|
||||
hello
|
||||
|
||||
$ dune build @x
|
||||
$ cat _build/default/data
|
||||
hello
|
||||
hello
|
||||
Loading…
Add table
Add a link
Reference in a new issue