-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
#514 Add some CC licenses #587
#514 Add some CC licenses #587
Conversation
@pombredanne Can you please help me interpret the build logs. I can't figure out how the diff in this PR causes the build to fail. |
@aviaryan Thanks! Please check https://github.com/nexB/aboutcode/wiki/Writing-good-commit-messages In your case if you check this job on windows for the license tests you see a failure in that test |
Hi @pombredanne [Don't bother; rebase is needed]
UPDATE: UPDATE: |
0082efc
to
d0d8992
Compare
* cc-GPL-2.0-pt * cc-LGPL-2.1-pt * cc-by-nc-nd-2.0-at * cc-by-nc-nd-2.0-au Signed-off-by: Avi Aryan <[email protected]>
d0d8992
to
78d3b3d
Compare
@@ -0,0 +1,11 @@ | |||
key: cc-GPL-2.0-pt | |||
short_name: CC-GPL-2.0-PT | |||
name: >- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the names on one line
@@ -0,0 +1,11 @@ | |||
key: cc-GPL-2.0-pt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use all lowercase keys
category: Copyleft Limited | ||
owner: Creative Commons | ||
homepage_url: https://creativecommons.org/licenses/GPL/2.0/ | ||
spdx_license_key: CC-GPL-2.0-PT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is a valid SPDX license identifier at spdx.org?
What is likely happening here that by adding new licenses especially the ones in Portuguese and German you introduced a new batch of words aka. tokens that were never seen in the current set of licenses and rules. The way matching works is based on this set of tokens and whether they are known or not. This may subtly affect the way words are found and change the offsets where they are found (as these may only consider known words). Or this highlighted a bug somewhere in the code. The fix is easy: e.g. update the expected spans in the test with the new observed values. Yet this is likely the sign of some bug elsewhere: so the fix should not be applied for now. What would be great is to manually check in develop and in your branch what the matched words are exactly on the query side by running a scan of the test files in that test with |
Also fix spdx key values Signed-off-by: Avi Aryan <[email protected]>
Thanks for the quick commit! |
@pombredanne After rebase, build is still failing in the same manner. So I tried your suggestion of testing how captured licenses are differing in develop and my branch but it seems that the results come out identical. (See https://www.diffchecker.com/FiIaJdna) Thanks. |
@aviaryan can you post the results of running that should tell us where the quirks is. It smells like a bug for now. Not in your code. But induced by the new data. So we need to fully investigate this |
Both outputs are identical. Please see https://www.diffchecker.com/hf6g9ZHZ for the logs.
Also, I would like to repeat the question that I asked in my previous comment.
Thank you @pombredanne for your patience. |
not in the CLI. You could call the |
As discussed at #514 (comment), this PR adds some CC licenses to the ScanCode database.
These files were auto-generated using a script which can be found here (ugly code, no docs as of now). https://github.com/aviaryan/cc-licenses-parser-scancode
Note - I wasn't able to parse the
category
from the licenses. Therefore, they are fixed now atCopyleft Limited
. @pombredanne Can you guide me a little bit about how these categories are decided?