EmbarkStudios / cargo-deny

❌ Cargo plugin for linting your dependencies 🦀
http://embark.rs
Apache License 2.0
1.71k stars 83 forks source link

Consider not specifying `db-path` in configuration template #612

Closed LucasFA closed 7 months ago

LucasFA commented 7 months ago

Is your feature request related to a problem? Please describe. I have a custom path for CARGO_HOME. Running cargo deny init defaults to including in the configuration the path to the database ~/.cargo/advisory-db. In my case, that creates an unnecessary ~/.cargo folder in my HOME directory.

Describe the solution you'd like I tested just commenting out the offending line and it seemed to default to my CARGO_HOME, exactly as I want.

Describe alternatives you've considered

Additional context Somewhat related: #302. This change would bring the default (aka, without deny.toml) behaviour to the deny.toml default template.