sjtug / mirror-requests

新镜像请求 & BUG 汇报
https://mirrors.sjtug.sjtu.edu.cn
49 stars 2 forks source link

OPAM init failure #287

Closed liyishuai closed 7 months ago

liyishuai commented 2 years ago

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

opam init default https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git

Logs:

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")
glyh commented 7 months ago

I think this is fixed. At least I've got no trouble with opam init on my end.

liyishuai commented 7 months ago

Working fine on my side. Closing for now.