日記帳
本ページはプロモーションが含まれています
カテゴリー
Links
blog(ブログ)マスター
アンドロイドの巣
ゼロから始めるベランダ菜園
タイトル
ラジコン
2024年4月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

Unable to update registry `crates-io`

カテゴリー: General
2022-10-02 20:05
Unable to update registry `crates-io`

執筆:2022.10.02
編集:2022.10.02


>cargo check
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to receive response: セキュリティ エラーが発生しました
; class=Os (2)
warning: spurious network error (1 tries remaining): failed to receive response: セキュリティ エラーが発生しました
; class=Os (2)
error: failed to get `~` as a dependency of package `~`

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

Caused by:
Unable to update registry `crates-io`

Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
failed to receive response: セキュリティ エラーが発生しました
; class=Os (2)


PROJECT/.cargo/config
または
~/.cargo/config

 [net]
git-fetch-with-cli = true
を追加する


https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

net.git-fetch-with-cli

Type: boolean
Default: false
Environment: CARGO_NET_GIT_FETCH_WITH_CLI

true: 必要なライブラリを git でフェッチしてダウンロードします。
false: システムのビルドインライブラリを利用します。

欠点
 true: 作業フォルダにダウンロードされるため肥大します


ブログ内 関連記事: Unable to update


ブログ内 関連記事: Unable to update

トラックバック
トラックバックはありません。
PR

[PR]