Skip to content
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

Missing info about how to apply licenses #1263

Closed
duartemtorres opened this issue Dec 18, 2024 · 3 comments
Closed

Missing info about how to apply licenses #1263

duartemtorres opened this issue Dec 18, 2024 · 3 comments

Comments

@duartemtorres
Copy link

Each license page has a section named "How to apply this license" typically saying:

Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.

Some licenses like the MIT License include a step to replace the copyright templates with your own identifying information. Something like:

Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.

However, the Apache License 2.0 is missing this. I do not know if any other license has the same issue but it would be useful to have this to guide newbies.

@josiahaltschuler
Copy link

You are correct, @duartemtorres. Toward the bottom of the Apache 2.0 license there is this line:

Copyright [yyyy] [name of copyright owner]

So in the "How to apply this license" section of that page maybe the added line could be:

Replace [yyyy] with the current year and [name of copyright owner] with the name (or names) of the copyright holders.

@mlinksva, I'd be happy to add it in a PR if you want. Just let me know.

@mlinksva
Copy link
Contributor

This is not correct. The LICENSE file in the case of Apache-2.0 and other licenses with deployment instructions at the end should not be modified. The copyright info should be added to a source file comment when following the deployment instructions

There's a link to the Apache Software Foundation's own guidance on our page. You can see that they do not modify that text in the LICENSE file itself in various ASF projects.

@josiahaltschuler
Copy link

Hi @mlinksva, thanks for the explanation. I did not realize that. I see the copyright boilerplate now on various ASF projects as you mentioned. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants