You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear developpers, my experiences are related to mirage and opam-monorepo which use the 0install solver and for some reason it fails to find a solution for unikernels with Ocaml5.
I tried adding the following to the loglines, the idea is that Context.candidates gives a list of (version, opam packages) and the dependencies should be the same later in the filter_map in implementation (or am I wrong?) :
diff --git a/lib/model.ml b/lib/model.ml
index 8ae935f..e10f025 100644
--- a/lib/model.ml
+++ b/lib/model.ml
@@ -180,6 +180,7 @@ module Make (Context : S.CONTEXT) = struct
|> List.filter_map (function
| _, Error _rejection -> None
| version, Ok opam ->
+OpamConsole.warning "implementations for %S.%S with depends %S" (OpamPackage.Name.to_string role.name) (OpamPackage.Version.to_string version) (OpamFilter.string_of_filtered_formula @@ OpamFile.OPAM.depends opam);
let pkg = OpamPackage.create role.name version in
(* Note: we ignore depopts here: see opam/doc/design/depopts-and-features *)
let requires =
diff --git a/lib/switch_context.ml b/lib/switch_context.ml
index 42f39fb..073e5c0 100644
--- a/lib/switch_context.ml
+++ b/lib/switch_context.ml
@@ -48,6 +48,7 @@ let candidates t name =
v, Error (UserConstraint (name, Some test))
| _ ->
let opam = load t (OpamPackage.create name v) in
+OpamConsole.warning "candidates for %S.%S with depends %S" (OpamPackage.Name.to_string name) (OpamPackage.Version.to_string v) (OpamFilter.string_of_filtered_formula @@ OpamFile.OPAM.depends opam);
(* Note: [OpamStateTypes.available_packages] filters out unavailable packages for us. *)
v, Ok opam
)
This produce something strange (I already identified base-domains to be related to the mirage/opam-monorepo solution error):
Dear developpers, my experiences are related to
mirage
andopam-monorepo
which use the 0install solver and for some reason it fails to find a solution for unikernels with Ocaml5.I tried adding the following to the loglines, the idea is that
Context.candidates
gives a list of(version, opam packages)
and the dependencies should be the same later in the filter_map inimplementation
(or am I wrong?) :This produce something strange (I already identified base-domains to be related to the mirage/opam-monorepo solution error):
My issue is that the
ocaml >= \"5.0\"
dependency disapears immediatly :(For some other opam packages the depends are the same for both loglines as they should (to me):
This may be a red herring and I'm currently unsure how to step forward. Do you have any advice?
The text was updated successfully, but these errors were encountered: