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,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
)))

View file

@ -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