-
Notifications
You must be signed in to change notification settings - Fork 186
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
tern with scancode, exceptions are thrown #964
Comments
Yes it should :(. Let me see if I can reproduce it at the tip of the main branch... |
I can reproduce the error. It's an issue with the reporting function of Tern not being able to handle whatever data Scancode found because when I run Tern on that image without Scancode I get a SBoM as expected. I will dig in to this. |
The offending information is actually
This means that in the
|
When scancode detects python package licenses it attaches the license classifiers to the declared_license dictionary, if applicable. This is a problem when Tern tries to report the package license by adding it to a set of licenses in get_package_licenses(), as dictionary objects cannot be added to sets. This commit filters out the declared license string from declared license dictionary containing the classifier values in order to fix this issue. Resolves tern-tools#964 Signed-off-by: Rose Judge <rjudge@vmware.com>
When scancode detects python package licenses it attaches the license classifiers to the declared_license dictionary, if applicable. This is a problem when Tern tries to report the package license by adding it to a set of licenses in get_package_licenses(), as dictionary objects cannot be added to sets. This commit filters out the declared license string from declared license dictionary containing the classifier values in order to fix this issue. Resolves #964 Signed-off-by: Rose Judge <rjudge@vmware.com>
Describe the bug
tern with scancode, exceptions are thrown independent of the report type
To Reproduce
Error in terminal
Expected behavior
Should work, right?
Environment you are running Tern on
Enter all that apply
Please attach files if they exist
The text was updated successfully, but these errors were encountered: