[OCaml] High Intensity Training Online
build declare project dependencies
dune-project listed only ocaml, so a fresh clone could not resolve alcotest or eliom and `opam install .` would fail before the build started. - alcotest, scoped :with-test — needed only to run the suite - eliom, needed by hito.web - ocamlformat pinned to 0.29.0, scoped :with-dev-setup, matching the version in .ocamlformat so formatting is reproducible - ocaml lower bound 5.1 (developed against 5.5) hito.opam is regenerated from this and committed alongside, since opam must read it before dune can run.
Changed files
dune-project
@@ -19,7 +19,19 @@
19
19
(name hito)
20
20
(synopsis "High Intensity Trainer Online")
21
21
(description "A longer description")
22
Removed:
(depends ocaml)
22
Added:
(depends
23
Added:
(ocaml
24
Added:
(>= 5.1))
25
Added:
(alcotest
26
Added:
(and
27
Added:
(>= 1.8)
28
Added:
:with-test))
29
Added:
(eliom
30
Added:
(>= 12.0))
31
Added:
(ocamlformat
32
Added:
(and
33
Added:
(= 0.29.0)
34
Added:
:with-dev-setup)))
23
35
(tags
24
36
("add topics" "to describe" your project)))
25
37
hito.opam
@@ -11,7 +11,10 @@
11
11
bug-reports: "https://github.com/username/reponame/issues"
12
12
depends: [
13
13
"dune" {>= "3.20"}
14
Removed:
"ocaml"
14
Added:
"ocaml" {>= "5.1"}
15
Added:
"alcotest" {>= "1.8" & with-test}
16
Added:
"eliom" {>= "12.0"}
17
Added:
"ocamlformat" {= "0.29.0" & with-dev-setup}
15
18
"odoc" {with-doc}
16
19
]
17
20
build: [