Skip to content
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

License choice is not respected when generating NOTICE file #8438

Open
maklostermann opened this issue Mar 18, 2024 · 0 comments
Open

License choice is not respected when generating NOTICE file #8438

maklostermann opened this issue Mar 18, 2024 · 0 comments
Labels
bug Issues that are considered to be bugs reporter About the reporter tool

Comments

@maklostermann
Copy link

maklostermann commented Mar 18, 2024

Using license choice (either for package or repository) to select one of two available licenses, e.g.:

license_choices:
  repository_license_choices:
    - given: "Apache-2.0 OR LGPL-2.1-only"
      choice: "Apache-2.0"

The Web App report's table shows "Apache-2.0" as effective, "Apache-2.0, LGPL-2.1-only" as detected license, as expected.

However, the NOTICE_DEFAULT still lists both licenses:

Package: net.java.dev.jna:jna:5.3.1

The following copyrights and licenses were found in the source code of this package:

                                 Apache License
[...]
  --

                  GNU LESSER GENERAL PUBLIC LICENSE
[...]

Note: There is no copyright as there was no scan. The analyzer already lists the licenses (from Maven).

We currently work around this issue by concluding the license with a curation instead of choosing it.

@sschuberth sschuberth added bug Issues that are considered to be bugs reporter About the reporter tool labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are considered to be bugs reporter About the reporter tool
Projects
None yet
Development

No branches or pull requests

2 participants