-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
2023-01-19 22:28.50: >>> Failure("unknown variant: options") (score = 30)
2023-01-19 22:28.50: >>> Failure("unknown variant: options") (score = 30)
2023-01-19 22:28.50: unknown variant: options
This issue seems to come from
ocaml-version/ocaml_version.ml
Line 599 in 5b5413a
| with_variant t (Some "options") |
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
| let of_string = function | |
| | "afl" -> Some `Afl | |
| | "flambda" -> Some `Flambda | |
| | "default-unsafe-string" -> Some `Default_unsafe_string | |
| | "domains" -> Some `Domains | |
| | "effects" -> Some `Effects | |
| | "force-safe-string" -> Some `Force_safe_string | |
| | "fp" -> Some `Frame_pointer | |
| | "multicore" -> Some `Multicore | |
| | "no-effect-syntax" -> Some `Multicore_no_effect_syntax | |
| | "nnp" -> Some `No_naked_pointers | |
| | "nnpchecker" -> Some `No_naked_pointers_checker | |
| | "no-flat-float-array" -> Some `Disable_flat_float_array | |
| | _ -> None |
so there's an error at
ocaml-version/ocaml_version.ml
Lines 456 to 461 in 5b5413a
| let of_t t = | |
| match t.extra with None -> Ok [] | Some extra -> | |
| String.split_on_char '+' extra |> | |
| List.map (fun b -> match of_string b with | |
| | None -> Error (`Msg ("unknown variant: " ^ b)) | |
| | Some v -> Ok v) |> |
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 the extra field isn't None in Opam.V2.package.
cc @benmandrew who first found the issue.
cc @dra27 who might have a clue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels