-
Notifications
You must be signed in to change notification settings - Fork 193
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
Update the copyright statements to match CNCF recs #1335
Conversation
🤖 Created branch: z_pr1335/skitt/cncf-style-copyright |
35d6948
to
5440ec2
Compare
5440ec2
to
c3ba1f5
Compare
.github/workflows/linting.yml
Outdated
@@ -43,6 +43,9 @@ jobs: | |||
- name: Check out the repository | |||
uses: actions/checkout@v2 | |||
|
|||
- name: Delete generated files | |||
run: rm -rf pkg/client pkg/apis/submariner.io/v1/zz_generated.deepcopy.go pkg/natdiscovery/proto/natdiscovery.pb.go | |||
|
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.
What is this change for?
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.
Fair question, it’s to avoid checking generated files; but it’s not great, I’m just going to replace the GHA we use instead.
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.
We need to ignore generated files for some part of the license checks; hopefully it’s clearer in the updated version.
9661bd9
to
35ecb1f
Compare
This updates the copyright statements to match the CNCF recommendation, as per https://github.com/cncf/foundation/blob/master/copyright-notices.md We also add SPDX headers, and add enforcement (ignoring generated files which don't carry our copyright). The change in copyright statement is only made to Red Hat statements. Change automated with (split over multiple lines for the commit message): find . -name \*.go -exec sed -i -E \ 's/© .... Red Hat, Inc. and others.?/ SPDX-License-Identifier: Apache-2.0\n\n Copyright Contributors to the Submariner project./' {} + Fixes: submariner-io#1322 Signed-off-by: Stephen Kitt <skitt@redhat.com>
9ab979a
to
2e96396
Compare
🤖 Closed branches: [z_pr1335/skitt/cncf-style-copyright] |
This updates the copyright statements to match the CNCF
recommendation, as per
https://github.com/cncf/foundation/blob/master/copyright-notices.md
We also add SPDX headers, and add enforcement (which is expected to
fail currently).
The change in copyright statement is only made to Red Hat statements.
Change automated with (split over multiple lines for the commit
message):
find . -name *.go -exec sed -i
's/© .... Red Hat, Inc. and others.?/
SPDX-License-Identifier: Apache-2.0\n\n
Copyright Contributors to the Submariner project./' {} +
Fixes: #1322
Signed-off-by: Stephen Kitt skitt@redhat.com