Cannot upgrade OCAML to 5.2.0

The way to fix this is to run the following commands:

brew install gpatch
rm -rf ~/.opam/repo/default{,.tar.gz} && opam update default

The issue is described in: Possible breakage in opam update · Issue #25961 · ocaml/opam-repository · GitHub

5 Likes