-
Notifications
You must be signed in to change notification settings - Fork 118
Allow setting bans.multiple-versions to level 'note'Β #796
Description
Is your feature request related to a problem? Please describe.
I develop a small-size project at work, that then runs as a service on a server. Hence, compile-time and binary size are of no concern, and I can leave with duplicate dependencies.
Currently, the output of cargo deny check looks like the following:
(... many rows before ...)
warning[duplicate]: found 2 duplicate entries for crate 'zerovec-derive'
ββ /home/joel/si-interne/pdfg/Cargo.lock:368:1
β
368 β β zerovec-derive 0.10.3 registry+https://github.com/rust-lang/crates.io-index
369 β β zerovec-derive 0.11.1 registry+https://github.com/rust-lang/crates.io-index
β β°ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ lock entries
β
β zerovec-derive v0.10.3
βββ zerovec v0.10.4
βββ icu_collections v1.5.0
β (... etc ...)
advisories ok: 0 errors, 0 warnings, 0 notes
bans ok: 0 errors, 32 warnings, 0 notes
licenses ok: 0 errors, 0 warnings, 384 notes
sources ok: 0 errors, 0 warnings, 0 notesThis is a lot of interesting stuff, but as itβs OK to keep these duplicates for now, I would prefer not to have them reported as warnings, in particular as CI artifact that is recorded for audits.
So I tried to change the setting of deny.toml bans.multiple-versions to note / info / notice, but this is not permitted:
error[unexpected-value]: expected '["allow", "warn", "deny"]'
ββ /home/joel/si-interne/pdfg/Cargo-deny.toml:168:22
β
168 β multiple-versions = "notice"
β ββββββ unexpected valueSo it appears that duplicates are either errors, warnings, or untold; there seems to be no way to report them as notes, even if this level exists in final statistics.
Describe the solution you'd like
Allow setting deny.toml bans.multiple-versions to note level, so that these are reported as interesting-but-not-problematic in the statistics.
Describe alternatives you've considered
Setting bans.multiple-versions to allow just hide the duplicatesβ statistics. So instead of being kind of a false alarm, I just lose the information.
Additional context
n/a