-
Notifications
You must be signed in to change notification settings - Fork 41
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
Make AnyLicenseInfo inherit from Element #369
Conversation
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
After seeing the changes, I realized we are now requiring the expressions as well as licenses and exceptions now require a permanent ID. I think this is OK, it is just a change from SPDX 2.X where expressions could be anonymous but the licenses themselves have to have ID’s. |
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.
Hi @goneall, thanks for this! A few comments:
- For License and LicenseAddition, would we also want to drop
seeAlso
, and change to have license cross-references also beExternalReferences
? - I think that License and LicenseAddition (not just LicenseField) would also need to be specified as a subclass of Element, if we're removing the Id, Name, etc. fields from LicenseAddition. Or I might be misunderstanding what the goal was here?
Good point - I'll remove
|
Per suggestion in pull request comments Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Changes NoneLicense and NoAssertionLicense to Individuals Makes NoneLicense and NoAssertionLicense type AnyLicenseInfo Removes LicenseField class Add a new class ExtendableLicense to allow WithOperator to have either a License or an OrLater operator Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
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.
Typos and nitpicks
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Thanks @zvr - these should all now be fixed |
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
OK - this is a bit frustrating - I pushed a commit to correct the wording. It shows up in the branch commits but doesn't show up in the pull request commits. @zvr - any ideas? I did to a force push yesterday, not sure if that messed up the pull requests. I guess I could close this and re-open another pull request with the same branch to fix, but we'd loose the conversation. |
@zvr - Never mind - I found this workaround. Based on the high score on stack overflow, it looks like I'm not the only one who's run into this. |
Adds LicenseExpression class Creates a new profile for the complex license expression classes Fixes #372 Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
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.
Looks good enough for merging; we might tweak texts later.
This pull request make just the changes necessary for
LicenseField
to inherit fromElement
.This decouples this change from the other changes proposed in PR #297