Skip to content

cargoAudit check fails silently #841

Answered by ipetkov
eureka-cpu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @eureka-cpu thanks for the report!

The default behavior of cargoAudit is to call cargo audit -n -d ${advisory-db} --ignore yanked, so if you want it to actually fail on unmaintained crates you'd need to set cargoAuditExtraArgs = "--ignore yanked --deny unmaintained"; (for example).


As for the yanked warnings

error: couldn't check if the package is yanked: not found:

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ipetkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #818 on May 09, 2025 21:29.