Skip to content

Commit

Permalink
Merge pull request #1409 from palainp/fix-opam-monorepo-and-Ocaml5-sc…
Browse files Browse the repository at this point in the history
…ripts

fix opam-monorepo issue with Ocaml5+
  • Loading branch information
hannesm committed Mar 19, 2023
2 parents e34ae65 + 304db61 commit eb329ce
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion lib/mirage/mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ let run t = %s.Main.run t ; exit 0|ocaml}
let min = "4.3.1" and max = "4.4.0" in
let common =
[
package ~scope:`Switch ~build:true ~min:"4.08.0" "ocaml";
package ~scope:`Monorepo "lwt";
package ~scope:`Monorepo ~min ~max "mirage-runtime";
package ~scope:`Switch ~build:true ~min ~max "mirage";
Expand Down
4 changes: 1 addition & 3 deletions test/mirage/query/run-hvt.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Query opam file
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-runtime" { ?monorepo & >= "4.3.1" & < "4.4.0" }
"mirage-solo5" { ?monorepo & >= "0.9.0" & < "0.10.0" }
"ocaml" { build & >= "4.08.0" }
"ocaml-solo5" { build & >= "0.8.1" & < "0.9.0" }
"opam-monorepo" { build & >= "0.3.2" }
"solo5" { build & >= "0.7.5" & < "0.8.0" }
Expand All @@ -46,7 +45,7 @@ Query opam file
["mirage-overlays" "https://github.com/dune-universe/mirage-opam-overlays.git"]]

x-opam-monorepo-opam-provided: ["mirage"
"ocaml""ocaml-solo5""opam-monorepo"
"ocaml-solo5""opam-monorepo"
"solo5"]


Expand All @@ -60,7 +59,6 @@ Query packages
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-runtime" { ?monorepo & >= "4.3.1" & < "4.4.0" }
"mirage-solo5" { ?monorepo & >= "0.9.0" & < "0.10.0" }
"ocaml" { build & >= "4.08.0" }
"ocaml-solo5" { build & >= "0.8.1" & < "0.9.0" }
"opam-monorepo" { build & >= "0.3.2" }
"solo5" { build & >= "0.7.5" & < "0.8.0" }
Expand Down
3 changes: 0 additions & 3 deletions test/mirage/query/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Query opam file
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-runtime" { ?monorepo & >= "4.3.1" & < "4.4.0" }
"mirage-unix" { ?monorepo & >= "5.0.0" & < "6.0.0" }
"ocaml" { build & >= "4.08.0" }
"opam-monorepo" { build & >= "0.3.2" }
]

Expand All @@ -48,7 +47,6 @@ Query opam file
["mirage-overlays" "https://github.com/dune-universe/mirage-opam-overlays.git"]]

x-opam-monorepo-opam-provided: ["mirage"
"ocaml"
"opam-monorepo"]


Expand All @@ -62,7 +60,6 @@ Query packages
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-runtime" { ?monorepo & >= "4.3.1" & < "4.4.0" }
"mirage-unix" { ?monorepo & >= "5.0.0" & < "6.0.0" }
"ocaml" { build & >= "4.08.0" }
"opam-monorepo" { build & >= "0.3.2" }

Query files
Expand Down

0 comments on commit eb329ce

Please sign in to comment.