-
Notifications
You must be signed in to change notification settings - Fork 10.3k
License template is used without applied year and contributors #34340
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
Comments
This issue relates to the impact of #8733 on downstream consumers attempting to add aspnetcore to their THIRD-PARTY-NOTICES.txt file. Prior to that pull request, it was straightforward to copy/paste the attribution (to get something conceptually similar to this). This is no longer possible, since the copyright holder has been replaced by a generic placeholder. /cc @terrajobst |
Here's my understanding from not being a lawyer: That text in the Apache license is telling YOU how to apply Apache to YOUR code. So you fill in whatever year/name you want for YOUR code. It's just the standard general information. The instructions don't change based on where the instructions are copied, but what you do with the instructions is specific to the project. Nothing should ever change in the standard Apache license text. So within the AspNetCore repo, every source file has something like that in every file to apply the license to that file, for example: aspnetcore/src/Components/Forms/src/EditContext.cs Lines 1 to 2 in 1395fa8
|
And from the horse's mouth: https://infra.apache.org/apply-license.html#new
It says nothing about modifying the license text in that file. And then for each source/document file in the project:
|
@Eilon Thanks for comments. However, this does not look so obvious now.
So it looks like file LICENSE.txt seems to be OK. However, in .cs files, there is a problem with missing year. It does not contain year, which is required. On the other hand it contains copyright symbol, which is not required. Year seems to be mandatory to include:
I am not sure about other files, except .cs files. All those .xml, .yml, etc - do not contain the copyright header. To just have a better overview of how LICENSE.txt files are used across github in other Microsoft projects, here are few examples: |
Ultimately this was also based on guidance from our attorneys at Microsoft, and for the most part we applied their guidance with what was at the time (~10 years ago??) their best knowledge on what to do. Tagging @Pilchie here because this project is run by his team now. I don't live here anymore but they still let me hang out sometimes 😄 |
BTW some of those repos, such as https://github.com/aspnet/HttpAbstractions/, are old archived repos, and also when looking at tags, those are old point-in-time and for various technical reasons are not updated. Usually only the 'main' branch is updated to reflect "current" guidance. I agree it's quite inconsistent but the guidance on what to do is also often inconsistent or subject to various interpretations. |
Note that for .NET 6, we're planning on moving to MIT as part of #18873, so I expect things will be cleaned up as part of that. |
I agree I should have been used "main" or "master" / "development" branches. Here are updated examples: generic Apache 2.0 (hard to use) - this repo Apache 2.0 license modified file at the bottom! 😉 (can this be used at all? I do not think so) |
Your bottom two links are to archived repos that are not under active development. As I mentioned above, we'll be updating dotnet/aspnetcore to MIT over the next month or so before .NET 6 ships. |
@Pilchie now that we're MIT, is it time to close this❔ Unless there's action(s) necessary in our servicing branches of course… |
I don't think there is any further action required here. |
I'm marking this as Fixed (as opposed to obsolete) because the consumer problem described by #34340 (comment) was eliminated by the MIT license update. The ability to copy/paste for third-party notices has been restored. |
Describe the bug
Someone removed the license copyrights. It looks like the software is not licensed to anyone at this moment.
See this commit for details:
4b9099a#diff-d0ed4cc3fb70489fe51c7e0ac180cba2a7472124f9f9e9ae67b01a37fbd580b7
At the end of the license.txt file you have instruction how to apply the license.
OMG!
Regards,
Mateusz
To Reproduce
Just read the content of this file:
https://raw.githubusercontent.com/dotnet/aspnetcore/main/LICENSE.txt
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: