SOLVED: Cargo error: unable to get packages from source


#1

Hi, on my new dev machine i installed rust via rustup as always without errors. Now when I try to run cargo check on a freshly cloned repo i get

$ cargo build --verbose
error: unable to get packages from source

Caused by:
  failed to unpack package `rand v0.3.16`

Caused by:
  invalid gzip header

Is it me, Cargo, or crates.io? :frowning:

UPDATE: Compiling other packages (I tried to compile ripgrep from fresh repo) works OK, so it must be just rand package. I think :thinking:

SOLVED: Clearing cargo registry and git directories in ~/.cargo solved the issue :slight_smile: Sorry for troubling anyone :wink: