-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance ResolveLicenseInfos to contain original SPDX expressions #3616
Enhance ResolveLicenseInfos to contain original SPDX expressions #3616
Conversation
Once we introduce choices to the Should it be removed from ort/model/src/main/kotlin/licenses/ResolvedLicenseInfo.kt Lines 43 to 46 in bb28903
|
e494f3d
to
2fd32f5
Compare
2fd32f5
to
fbac018
Compare
650bd56
to
e470f08
Compare
8fbc6a6
to
2002102
Compare
bd2ffa2
to
5a77418
Compare
5a77418
to
6bf49c1
Compare
6bf49c1
to
163d080
Compare
This is required to apply choices to the expression at a later point in time. Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
Signed-off-by: Stephanie Neubauer <Stephanie.Neubauer@bosch.io> Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
So far concluded licenses were not added to the ResolvedLicense with the source 'CONCLUDED', since there could have been an information loss with the SPDX operators. In a future change the license choice will also be applied to the concluded licenses and therefore concluded licenses with their original expression have to be stored within ResolvedLicense. Signed-off-by: Stephanie Neubauer <Stephanie.Neubauer@bosch.io> Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
As the keys of the original expressions already contain the license sources, the separate `sources` field is removed from the constructor. The field itself is kept within `ResolvedLicense` because it is useful in the API. Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
163d080
to
478462a
Compare
See commit messages for detailed information.
FYI: @KorSin, @neubs-bsi
Related to: #3396