-
Notifications
You must be signed in to change notification settings - Fork 42
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
potential utility/option to convert spdx license key to scancode/aboutcode key #413
Comments
We should enhance AbC TK to optionally look up the SPDX License Identifier and store it in ABOUT files. |
I think the correct way to handle this is to create a new field named |
This should also be done in scancode BTW see aboutcode-org/scancode-toolkit#1217 Let's chat about the details when you have sec. |
@pombredanne that's my original idea :D |
Perhaps just a |
I can think of 2 options here:
Question: Note: |
I do not see the value of two fields for key and expression when the latter easily covers both cases. |
If someone wants to use SPDX license identifiers/expressions instead of ScanCode license expressions then the standard should probably be to store the SPDX expressions in ABOUT files and perform any conversion at the time you create the ABOUT files. Attribution generation should be kept simple as a tool to "harvest" data from ABOUT files. Applying a conversion during Attribution Generation could become confusing and error-prone. |
* some code skeleton is added, but the code is not working
@pombredanne I think our current approach will use scancode's API to do the transformation, correct? |
@chinyeungli Now that we have complete SPDX License Ids or License-Ref-scancode values from LicenseDB this issue may be moot. |
@chinyeungli Confirmed that the latest develop branch writes the spdx_license_key to the generated inventory file when available. Looks good |
This is not fixed. The current |
I thought of two approaches:
What do you think? |
@chinyeungli I think approach number 1 is probably best, since the point of |
Since this is a very old issue, we may need to loop back to the use case(s) to decide what to do.
For the first use case ABCTK can create a complete Attribution Notice using licenseref-scancode values from the ScanCode LicenseDB for licenses that are not on the License List. We probably need a separate Issue to track this use case and solicit community input. |
We can do (1) already. For (2), I don't know why do we need "SPDX-compliant licenseref for each license that is not on the SPDX License List" , as the input is "SPDX license expressions", it should be assumed all are the offical one. What I am thinking is convert the "SPDX license expression" to "ScanCode license" either frontend (i.e. create a new column in the input) or backend and then use the normal process |
Closing this Issue and creating #513 for the second use case pending input from someone who needs and will use this feature. |
See #405
Our current code do not support spdx's license. However, this may be a good topic to think again do we want to have spdx license supported.
If yes, perhaps a utility to help to convert spdx license's key to scancode/aboutcode key.
The text was updated successfully, but these errors were encountered: