I was using the compiler version 5.5.0~beta1. I ran opam install ocaml-base-compiler.5.5.0 --update-invariant. It worked but now opam switch’s output is wrong, even though the invariant has been correctly updated:
$ opam switch invariant
["ocaml-base-compiler" {= "5.5.0"}]
$ opam switch
# switch compiler description
→ main ocaml-base-compiler.5.5.0,ocaml-options-vanilla.1
ocaml-base-compiler = 5.5.0~beta1
I was using the compiler version 5.5.0~beta1. I ran
opam install ocaml-base-compiler.5.5.0 --update-invariant. It worked but nowopam switch’s output is wrong, even though the invariant has been correctly updated: