Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cargo Deny Fails when --manifest-path Cargo.toml is Provided #636

Closed
George-lewis opened this issue Mar 20, 2024 · 0 comments · Fixed by #638
Closed

Bug: Cargo Deny Fails when --manifest-path Cargo.toml is Provided #636

George-lewis opened this issue Mar 20, 2024 · 0 comments · Fixed by #638
Labels
bug Something isn't working

Comments

@George-lewis
Copy link

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 folder

To reproduce

In a Rust project, in the folder containing Cargo.toml,

Running cargo deny --manifest-path Cargo.toml check all fails with error:

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

Furthermore, cargo metadata --manifest-path Cargo.toml works as well

cargo-deny version

0.14.17

What OS were you running cargo-deny on?

Linux

Additional context

No response

@George-lewis George-lewis added the bug Something isn't working label Mar 20, 2024
@Jake-Shadle Jake-Shadle mentioned this issue Mar 21, 2024
Jake-Shadle added a commit that referenced this issue Mar 21, 2024
Also updates krates/tame-index.

Resolves: #636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant