Open jwodder opened 1 year ago
I disagree, but also see what you mean. --previous
should favor the previous over anything found. But having a --copy-from-previous-if-missing
or something like that would be very useful and more clear / fit the patter of how to use this tool as outlined in the README a bit better.
For this, and all the other open issues, I'm not sure when I'll get to them, I'm always open to PRs, and do use this tool myself to maintain projects. This issue in particular is at the top of the queue to work on when I come around to this tool again.
When I generated a
THIRDPARTY.toml
file withcargo bundle-licenses --format toml --output THIRDPARTY.toml
, the Unicode-DFS-2016 license for unicode-ident:1.0.8 was not found, though the package's other licenses (MIT and Apache-2.0) were, so I manually filled in the missing license text inTHIRDPARTY.toml
. When I then rancargo bundle-licenses --format toml -o CI.toml --previous THIRDPARTY.toml
, part of the output was:As can be seen,
cargo-bundle-licenses
copied over the text of the MIT and Apache-2.0 licenses from the previous file even though those licenses were found in the unicode-ident:1.0.8 source. I believe this is the wrong thing to do, as it can lead to upstream changes to license text being discarded.