Closed bnjbvr closed 7 months ago
Can I take this issue?
Sure, please go ahead and let me know if you need any help!
Thanks! I will work on this.
Hi @bnjbvr, @tottoto is this issue still ongoing?
hi @rolemadelen, thanks for the ping. Actually it's not anymore, because we consider the ignored
vec as mandatory, if the package.metadata.cargo-machete
annotation is present, so it will error with the following message if we use ignore
instead of ignored
:
error when handling ./integration-tests/ignored-dep/Cargo.toml: TOML parse error at line 14, column 1
|
14 | [package.metadata.cargo-machete]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing field `ignored
It's easy to write
ignore = true
instead ofignored = true
in the machete metadata section in a Cargo.toml file. Right now it'll fail the analysis of that specific package, but not overall; it might be better to make this a hard error instead, that fails the whole analysis (after displaying the analysis results for other crates).