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
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