Closed ilyvion closed 2 years ago
When a crate doesn't specify a license field, cargo-about must assemble one, which it does by AND
ing all detected licenses together as the most conservative option. The toml line numbers are for a synthesized cargo.toml that doesn't actually exist on disk. I'd recommend using the ring
workaround to avoid this problem https://embarkstudios.github.io/cargo-about/cli/generate/config.html#the-workarounds-field-optional
Thanks for the link to the workaround.
I disagree that the issue is "completed" as the error message could definitely do with some improvement over reporting an error as though it is on a specific line:column in a real file on disk while actually being in a synthesized, in-memory buffer, but it's your project, not mine, I suppose.
Describe the bug I'm trying to run
cargo about generate
on a library that usesring
indirectly, and I'm being met by a rather confusing error message:I say it's confusing, because 1) just above it says "ring 0.16.20 doesn't have a license field" and 2) Despite this, it manages to produce a license field from somewhere, but it's definitely not @
ring-0.16.20\Cargo.toml:28:13
because 28:13 isTo Reproduce Steps to reproduce the behavior:
cargo init
ring = "0.16"
as a dependency inCargo.toml
cargo about init
cargo about generate
Expected behavior I feel like this error could do with some improvement. I have absolutely no idea what this error is talking about, because it's pointing to the wrong file, and I don't know which one it actually printed an excerpt from.