hitlug / issues

新的镜像请求以及相关意见
20 stars 2 forks source link

crates.io-index.git 不工作 #32

Closed piggynl closed 2 years ago

piggynl commented 2 years ago
$ cargo update
    Updating `https://mirrors.hit.edu.cn/crates.io-index.git` index
warning: spurious network error (2 tries remaining): invalid content-type: 'application/octet-stream'; class=Http (34)
warning: spurious network error (1 tries remaining): invalid content-type: 'application/octet-stream'; class=Http (34)
error: failed to get `***` as a dependency of package `***** v0.1.0 (/path/to/my/*****)`

Caused by:
  failed to load source for dependency `***`

Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to update replaced source registry `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to fetch `https://mirrors.hit.edu.cn/crates.io-index.git`

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  invalid content-type: 'application/octet-stream'; class=Http (34)

现在的 nginx 不太支持 https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols#_the_smart_protocol , 需要一个 https://git-scm.com/docs/git-http-backend


另外,#14 可以关掉了 XD

piggynl commented 2 years ago

hitlug/mirror-web#49