kbknapp / cargo-outdated

A cargo subcommand for displaying when Rust dependencies are out of date
MIT License
1.17k stars 87 forks source link

Fails to find outdated workspace dependencies #360

Open e00E opened 1 year ago

e00E commented 1 year ago
./crates/foo/src/lib.rs

./crates/foo/Cargo.toml
[package]
name = "foo"
version = "0.1.0"
edition = "2021"

[dependencies]
slab = { workspace = true }

./Cargo.toml
[workspace]
members = ["crates/*"]

[workspace.dependencies]
slab = "0.3"

The current version of slab is 0.4. cargo outdated is mistaken that all dependencies are up to date. If I move slab from a workspace dependency to a traditional dependency, then cargo outdated does find it as outdated.

willbuckner commented 1 month ago

I'm seeing the same thing on all of my workspace projects. I have, for example, reqwest pinned at ~0.11 in my Cargo.toml under [workspace.dependencies] in the root, and absolutely no combination of flags I've tried identifies that its out of date.