cargo-outdated icon indicating copy to clipboard operation
cargo-outdated copied to clipboard

cargo-outdated does not work with vendoring

Open kaedwen opened this issue 3 years ago • 3 comments

Version cargo-outdated v0.9.17

My project saved its dependecies via cargo vendor

Using cargo outdated in this workspace fails with

$ cargo outdated
Update for trybuild could not be found!
Update for reqwest could not be found!
Update for serde could not be found!
Update for trybuild could not be found!
Update for trybuild could not be found!
Update for hyphenation could not be found!
Update for serde could not be found!
Update for rand could not be found!
error: failed to get `anyhow` as a dependency of package `my-lib v0.1.0 (/tmp/cargo-outdatedg3IWMd/lib)`

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

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 load checksum `.cargo-checksum.json` of winapi-util v0.1.5

Caused by:
  failed to read `/tmp/cargo-outdatedg3IWMd/vendor/winapi-util/.cargo-checksum.json`

Caused by:
  No such file or directory (os error 2)

Removing all the vendoring stuff and the .cargo/config.toml helps and re-vendor afterwards but feels laborious

kaedwen avatar Aug 11 '21 08:08 kaedwen

thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', D:\Rust\cargo\registry\src\github.com-1ecc6299db9ec823\cargo-outdated-0.11.1\src\cargo_ops\temp_project.rs:430:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The problem is relevant.

Zymlex avatar Apr 28 '22 14:04 Zymlex

Having the same issue, and I need to vendor because I need to be able to compile offline.

kyp44 avatar Jul 07 '22 01:07 kyp44

Similar problem for (extracted) vendored deps pulled in with cargo download.

❯ RUST_LOG=info cargo outdated 
error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to load source for dependency `actix-http`

Caused by:
  Unable to update /tmp/cargo-outdatedlwg6Ju/vendor/actix-http

Caused by:
  failed to read `/tmp/cargo-outdatedlwg6Ju/vendor/actix-http/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

mplanchard avatar Sep 19 '22 22:09 mplanchard