google / addlicense

A program which ensures source code files have copyright license headers by scanning directory patterns recursively
Apache License 2.0
724 stars 170 forks source link

Adding GNU license #63

Closed matteoredaelli closed 2 years ago

matteoredaelli commented 3 years ago

GNU license is used by many people for many projects. Please add it.

Regards Matteo

google-cla[bot] commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

willnorris commented 3 years ago

You're absolutely right that the GPL is used by many projects. We've recently shifted to using standard SPDX style license identifiers, with the existing "apache", "mit", "bsd" values supported only for compatibility. So for the header you've included, the correct value would be "GPL-3.0-or-later". But then there are quite a few variants... three different versions of the GPL, two versions of the AGPL, and all of them with and without the "or-later" option.

Would using SPDX style headers work in your case, rather than the GPL-suggested header? Many projects are already moving in that direction for per-file license headers. If so, you could do that today with:

addlicense -c "Name" -l "GPL-3.0-or-later" -s .