This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
Error reading local Cargo index #121
Closed
Description
Hi!
Describe the bug
When the "Use Local Cargo Index" option is checked, the extension shows error next to each dependency. This happened after I reinstalled Rust.
I have this in my ~/.gitconfig
:
[init]
defaultBranch = main
Is it possible that the new version of cargo uses my default branch name for its index and Crates expect it to be called master
?
To Reproduce
Steps to reproduce the behavior:
- Open Cargo.toml
- All crates have ❗️❗️❗️ icon with this tooltip (this was for
anyhow
dependency):
**anyhow: Error: Command failed: git --no-pager --git-dir="/home/user/.cargo/registry/index/github.com-1ecc6299db9ec823/.git" show origin/master:an/yh/anyhow fatal: Invalid object name 'origin/master'. **
Expected behavior
The extension shows the status of each dependency instead of an error.
OS: Ubuntu 18.04 running in WSL2 on Windows 10