Don't warn when both license
and license-file
are specified
#9908
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
Right now cargo warns if you define both
license
andlicense-file
:cargo/src/cargo/util/toml/mod.rs
Lines 1439 to 1445 in 72ef2bd
This is a bit unfortunate as it means any tools that try to collect license files (e.g. for a 3rd-party notices file) have to write their own logic to try and figure out where the license is. But if projects could specify both the SPDX expression in
license
to know if a project meets any licensing requirements while also specifyinglicense-file
so it's easy to collect the license text as well would be helpful.Describe the solution you'd like
license
andlicense-file
are specified.The text was updated successfully, but these errors were encountered: