-
Notifications
You must be signed in to change notification settings - Fork 440
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
Add missing Copyright headers #754
Conversation
Wondering whether it is required and necessary to add copyright header for the auto-generated files, like |
Codecov Report
@@ Coverage Diff @@
## main #754 +/- ##
==========================================
- Coverage 96.02% 96.00% -0.02%
==========================================
Files 176 176
Lines 7186 7186
==========================================
- Hits 6900 6899 -1
- Misses 286 287 +1
|
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.
Us being "grandchildren" of Linux Foundation project - I would strongly encourage the usage of SPDX
// Copyright (c) 2021 OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
SPDX is part of Linux Foundation Collaborative Project initiative. This is more modern way of doing it. It is also shorter. You visually get to the essence of the code faster within 1 screen without having to scroll thru the license. Your license becomes just 2 lines. I can share a script that appends it. Latest spec:
https://www.linuxfoundation.org/en/blog/spdx-2-2-specification-released/
Technically and Legally - you do not have to have it at all, since |
Agree we don't need the license in all files, as long as it's there in the root folder, and apache clearly specifies that too: It's more useful if someone is using or viewing files in isolation, or we are having separate source distributions for api, sdk, etc. We can close this PR in that case if we all agree :) |
@lalitb - I can find the script I used to add SPDX headers in the other public repo that I'm maintaining. If you don't mind, I can try to apply SPDX. But right now - maybe we can keep in on a back-burner for now. We are good with the |
Sure, let me see if I can use the script I used for this PR for SPDX. If it's not straightforward, I will leave it for you for later :) |
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.
LGTM.
I wonder if:
|
I personally would agree, we might want to discuss this in the Maintainers Meeting. |
As discussed in today's Maintainers meeting, and also specified here: https://github.com/open-telemetry/community/blob/main/CONTRIBUTING.md#code-attribution , we should have short license/copyright notice in each source file. Currently, we have below header as part of this PR which is similar to what opentelemetry-java has: // Copyright (c) 2021 OpenTelemetry Authors Will resolve the conflicts in this PR as of now. We need more clarity on thrift/protobuf generated files, and they would be left for now. |
Could we remove |
Correct it's good to remove it. Will do. |
Yes, this would be good to have. Will see if we can incorporate something similar in our CI pipeline. |
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.
lgtm. Thanks for removing the year from the Copyright notice.
// Copyright (c) OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
Could we add the |
We still need to add copyright information in BUILD, CMakeLists and scripts. Will add that in separate PR as this is too big now. |
A quick crude PR to add copyright header in srcs and hdrs using the script from here: https://github.com/atapas/add-copyright
After running the script, manually removed copyright from below files ( thrift gen, traceloggingdynamics, nostd::absl, nostd::mpark:)
Sorry for the big PR. Will take care of sh/ps1/cmd files separately.