EmbarkStudios / cargo-about

📜 Cargo plugin to generate list of all licenses for a crate 🦀
http://embark.rs
Apache License 2.0
545 stars 32 forks source link

What does "the definition for X has not been harvested" mean? #222

Open prestomation opened 1 year ago

prestomation commented 1 year ago

Describe the bug When using cargo-about, I get a warning 'the definition for X has not been harvested'. It's not clear what this means and what action I should take. I see these packages and licenses in my generated document maybe this shouldn't be a warning?

To Reproduce Add a dependency that can't be harvested. I can find one if this will help but the code is here

Expected behavior I expect cargo-about to tell me either at runtime or in the docs what the implication is and what I can do to fix it.

Screenshots N/A Device: N/A Additional context Add any other context about the problem here.

andre4ik3 commented 1 year ago

It means that it tried doing a local scan, tried asking clearlydefined API for it, and is still clueless about licensing of a crate. Solution is simple: go to Clearly Defined harvest page, add all the crates and versions it says the error for (make sure to hit tab/enter after adding version, a little X should show up to the right indicating version has been entered, or else it might not work), hit "Harvest", wait 30 minutes, then go back and run the command again. If all goes well the errors should be gone (or at least there should be less of them, just rinse and repeat until there are none left)

guenhter commented 2 weeks ago

Wouldn't it be worth documenting this properly somewhere?