我要评分
获取效率
正确性
完整性
易理解

"cargo build" Reported During TiKV Compilation

Symptom

The message "error: failed to fetch `https://github.com/rust-lang/crates.io-index`" is displayed during TiKV compilation.

Key Process and Cause Analysis

HTTP or HTTPS proxy is used.

Conclusion and Solution

  1. Add the following content to the $HOME/.cargo/config file:
    1
    2
    [net]
    git-fetch-with-cli = true
    
  2. Compile TiKV again.