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
fix(license): apache license should not be modified #832
Conversation
Remove the appendix from the Apache 2.0 license text. It's not required and not supposed to be edited. Fixes #830
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.
@eladb I don't think we should remove the APPENDIX part. IMO, The lineCopyright [yyyy] [name of copyright owner]
should be kept without any modification.
Codecov Report
@@ Coverage Diff @@
## main #832 +/- ##
==========================================
+ Coverage 78.46% 83.53% +5.06%
==========================================
Files 88 99 +11
Lines 3181 3838 +657
Branches 809 904 +95
==========================================
+ Hits 2496 3206 +710
+ Misses 683 629 -54
- Partials 2 3 +1
Continue to review full report at Codecov.
|
I've checked some projects under https://github.com/apache/. They both have |
OK, reverting |
Do not modify the appendix in Apache 2.0 license. To allow other licenses to be modified (like MIT), change the substitution string to
$copyright_period
and$copyright_owner
. If the text includes these tokens and the relevant options are not provided, fail.Fixes #830
BREAKING CHANGE: The initializer of the
License
now takesspdx
through the options struct instead of a positional argument. Additionally, an error is thrown ifMIT
license is selected but thecopyrightOwner
is not provided (because it is required in the license text).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.