-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure("unknown variant: options") #58
Comments
Looking at the solver-service and the failures, this is coming from packages which have a dependency on base-domains and I expect it's while calculating the flambda variant. |
The issue here is that the solver-service is passing an opam package version back to It's not clear to me exactly what the fix is. On the one hand, the existing functions are about determining whether a given release of OCaml had a multicore variant (e.g. 4.06, 4.10, 4.12, etc. all of which have +domains variants) as opposed to 5.0+ which is multicore. I'm leaning towards there being no issue per se with ocaml-version and - as shown in ocurrent/solver-service#38, the issue is more that the solver should be asking the correct question (i.e. is the version >= 5 or is this variant a multicore variant). The fact that OCaml 5.x+ is multicore could reasonably be included as new function in ocaml-version. |
I think for our CI purposes this is accurate (in ocaml-ci and base-images builder). Whether anyone wants to describe which compiler versions are multicore using this library, that could be useful. In that case would 4.12+domains,effects be considered multicore? |
https://ci.ocamllabs.io/github/ocsigen/lwt/commit/3d6f0fac4fed71d3c9cbdc5b90d6a443949bb0d6/variant/(analysis)
This issue seems to come from
ocaml-version/ocaml_version.ml
Line 599 in 5b5413a
the only place afaict that introduces the variant "options". It is however not present in
ocaml-version/ocaml_version.ml
Lines 412 to 425 in 5b5413a
so there's an error at
ocaml-version/ocaml_version.ml
Lines 456 to 461 in 5b5413a
I can't manage to prove that this is where the
"options"
variant was introduced in the version value, nor find another place where it might have, nor figure out why theextra
field isn'tNone
inOpam.V2.package
.cc @benmandrew who first found the issue.
cc @dra27 who might have a clue?
The text was updated successfully, but these errors were encountered: