No configuration file found, using built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
[ERROR] At /Users/yishuai/.opam/repo/default/repo:4:22-4:23::
Parse error [skipped]
[NOTE] Repository at git+https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git doesn't define its version, assuming it's 1.2.
<><> Upgrading repositories from older opam format ><><><><><><><><><><><><><><>
Upgrading repository "default"...
Fatal error:
Invalid_argument("String.sub / Bytes.sub")
OPAM version: 2.1.2 OS: macOS Monterey 12.5
Command: per https://github.com/sjtug/portal/blob/83ad68f7311dcfd2391a2d58fbff260299236df7/content/post/mirror-help/opam-git.md?plain=1#L13
Logs: