This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
(test
|
||||
(name test)
|
||||
(modules test test_a test_b)
|
||||
(package a))
|
||||
|
||||
(rule
|
||||
(action (copy test_temp.ml test_a.ml))
|
||||
(package a))
|
||||
|
||||
(rule
|
||||
(package a)
|
||||
(action (copy test_temp.ml test_b.ml)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 2.0)
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
When --only-packages is passed, it runs, as long as the version is new enough
|
||||
|
||||
$ dune build --only-packages a @runtest
|
||||
File "dune", lines 10-12, characters 0-61:
|
||||
10 | (rule
|
||||
11 | (package a)
|
||||
12 | (action (copy test_temp.ml test_b.ml)))
|
||||
Error: 'package' in short-form 'rule' is only available since version 3.8 of
|
||||
the dune language. Please update your dune-project file to have (lang dune
|
||||
3.8).
|
||||
[1]
|
||||
|
||||
The version is too old, bump it to 3.8 where this was fixed:
|
||||
|
||||
$ cat > dune-project-3.8 <<EOF
|
||||
> (lang dune 3.8)
|
||||
> EOF
|
||||
$ mv dune-project-3.8 dune-project
|
||||
$ dune build --only-packages a @runtest
|
||||
A
|
||||
A
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
module _ = Test_a
|
||||
module _ = Test_b
|
||||
|
|
@ -0,0 +1 @@
|
|||
let () = print_endline "A"
|
||||
Loading…
Add table
Add a link
Reference in a new issue