-
Notifications
You must be signed in to change notification settings - Fork 5k
Add SPDX license identifiers to source files #1335
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
base: main
Are you sure you want to change the base?
Conversation
SPDX (https://spdx.org/licenses/) is a commonly used system for annotating source files with the intended license. In WDK, the top level LICENSE file describes the license as MS-PL, but individual files are less clear about the exact license. This has caused confusion in the past (microsoft#60). By annotating files with SPDX the license can be clarified by the addition of a single line. This change was done largely using the script below, followed by some light hand editing: perl -i -e 'while (<>) { if ($. <= 5 && m/(.*)Copyright.*Microsoft/) { print; print "$1SPDX-License-Identifier: MS-PL\r\n"; } else { print } } continue { close ARGV if eof }' -- $( git ls-files ) Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
|
@microsoft-github-policy-service agree company="Red Hat, Inc." |
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.
Approved for the changes under sd and storage directories.
@microsoft-github-policy-service agree company="Microsoft"
|
I appreciate the effort, but, frankly, as I balance it out, I am not sure this is a good change or an important area to improve. We are with this change emphasizing explicitness at the cost of redundancy and compactness. Frankly, I am more inclined to go to in different direction and delete lines referencing root of repo. I may be wrong in this balance, and I will keep an open mind to be proven wrong. |
JakobL-MSFT
left a comment
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.
I appreciate the effort, but, frankly, as I balance it out, I am not sure this is a good change or an important area to improve.
We are with this change emphasizing explicitness at the cost of redundancy and compactness. Frankly, I am more inclined to go to in different direction and delete lines referencing root of repo.
I may be wrong in this balance, and I will keep an open mind to be proven wrong.
|
Link to discussion on Fedora legal which led to this PR: https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/ZSVCFJFVMLTODFKGV352TYHH5ZQODJXD/ |
|
Thank you for sharing discussion. I am intrigued. I will ask around internally at MSFT to see what the consensus is. |
SPDX (https://spdx.org/licenses/) is a commonly used system for annotating source files with the intended license. In WDK, the top level LICENSE file describes the license as MS-PL, but individual files are less clear about the exact license. This has caused confusion in the past
(#60). By annotating files with SPDX the license can be clarified by the addition of a single line.
This change was done largely using the script below, followed by some light hand editing: