Closed George-lewis closed 3 months ago
Cargo deny exits with an error, apparently originating from cargo metadata, when a manifest path is provided which does not begin with a folder
cargo metadata
In a Rust project, in the folder containing Cargo.toml,
Cargo.toml
Running cargo deny --manifest-path Cargo.toml check all fails with error:
cargo deny --manifest-path Cargo.toml check all
failed to start `cargo metadata`: No such file or directory (os error 2): No such file or directory (os error 2)
However, running cargo deny --manifest-path ./Cargo.toml check all works without issue
cargo deny --manifest-path ./Cargo.toml check all
Furthermore, cargo metadata --manifest-path Cargo.toml works as well
cargo metadata --manifest-path Cargo.toml
0.14.17
Linux
No response
Describe the bug
Cargo deny exits with an error, apparently originating from
cargo metadata
, when a manifest path is provided which does not begin with a folderTo reproduce
In a Rust project, in the folder containing
Cargo.toml
,Running
cargo deny --manifest-path Cargo.toml check all
fails with error:However, running
cargo deny --manifest-path ./Cargo.toml check all
works without issueFurthermore,
cargo metadata --manifest-path Cargo.toml
works as wellcargo-deny version
0.14.17
What OS were you running cargo-deny on?
Linux
Additional context
No response