Skip to content

Commit

Permalink
More pedantic about dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gridbugs committed Aug 23, 2023
1 parent bf9c7cc commit c04251a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ homepage:
bug-reports: "https://github.com/ocaml-dune/ocaml-monorepo-benchmark/issues"
depends: [
"dune" {>= "3.5"}
"ocaml" {>= "4.14"}
"dune-rpc-lwt" {>= "3.8" & < "3.9"}
"fmt" {>= "0.9" & < "0.10"}
"logs" {>= "0.7" & < "0.8"}
"re" {>= "1.10" & < "1.11"}
"yojson" {>= "2.1" & < "2.2"}
"ocaml" {= "4.14.1"}
"dune-rpc-lwt"
"lwt" {= "5.6.1"}
"fmt" {= "0.9.0"}
"logs" {= "0.7.0"}
"re" {= "1.10.4"}
"yojson" {= "2.1.0"}
"odoc" {with-doc}
]
build: [
Expand Down
19 changes: 13 additions & 6 deletions dune-monorepo-benchmark-runner/dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@
(name dune-monorepo-benchmark-runner)
(synopsis "Tool for running dune monorepo benchmarks")
(depends
(ocaml (>= "4.14"))
(dune-rpc-lwt (and (>= "3.8") (< "3.9")))
(fmt (and (>= "0.9") (< "0.10")))
(logs (and (>= "0.7") (< "0.8")))
(re (and (>= "1.10") (< "1.11")))
(yojson (and (>= "2.1") (< "2.2")))))
; This is constrained since the monorepo was assembled with this version of ocaml
(ocaml (= "4.14.1"))
; No version constraint here since it will need to build with the latest
; version of dune anyway since in practice this will be re-built with dune
; pinned to the version being benchmarked.
dune-rpc-lwt
; Other dependencies are constrained to specific values to reduce the risk of
; this package failing to build due to an API change in one of its dependencies.
(lwt (= "5.6.1"))
(fmt (= "0.9.0"))
(logs (= "0.7.0"))
(re (= "1.10.4"))
(yojson (= "2.1.0"))))

0 comments on commit c04251a

Please sign in to comment.