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: --config is relative to --manifest-path #748

Open
kpreid opened this issue Feb 26, 2025 · 0 comments
Open

Bug: --config is relative to --manifest-path #748

kpreid opened this issue Feb 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kpreid
Copy link
Contributor

kpreid commented Feb 26, 2025

Describe the bug

If both --manifest-path and --config are specified, the pathname given for the latter is taken as relative to the former instead of the current directory.

To reproduce

$ cargo deny --manifest-path=foo/Cargo.toml check --config=bar/deny.toml
2025-02-26 17:37:15 [WARN] config path 'foo/bar/deny.toml' doesn't exist, falling back to default config

cargo-deny version

0.18.0

What OS were you running cargo-deny on?

MacOS

Additional context

No response

@kpreid kpreid added the bug Something isn't working label Feb 26, 2025
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

No branches or pull requests

1 participant