cargoAudit
check fails silently
#841
-
Describe the bug I just realized while going through #817 that the cargo-audit check seems to just fail without throwing an error. With the wrapper script that greps for
However, if I remove the wrapper script that tries to catch the error it just fails silently and gives no output at all, eg. the check passes without any output. When I run
Reproduction I'm using the workspace template, and my crane/advisory version is latest as of yesterday since I just ran
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @eureka-cpu thanks for the report! The default behavior of As for the yanked warnings
The last time I looked into it there wasn't a way to tell |
Beta Was this translation helpful? Give feedback.
Hi @eureka-cpu thanks for the report!
The default behavior of
cargoAudit
is to callcargo audit -n -d ${advisory-db} --ignore yanked
, so if you want it to actually fail on unmaintained crates you'd need to setcargoAuditExtraArgs = "--ignore yanked --deny unmaintained";
(for example).As for the yanked warnings
The last time I looked into it there wasn't a way to tell
cargo-audit
to not try updating the crates.io index to look for yanked crates; it tries anyway and fails (since the Nix derivation is running inside of the sandbox). I was hoping that--ignore yanked
would suppress the spammy warnings, but if anyone finds a way to…