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

Update the copyright statements to match CNCF recs #1335

Merged
merged 4 commits into from
May 20, 2021

Conversation

skitt
Copy link
Member

@skitt skitt commented May 17, 2021

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

@skitt skitt requested a review from dfarrell07 May 17, 2021 07:54
@skitt skitt added the cncf label May 17, 2021
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1335/skitt/cncf-style-copyright

@dfarrell07 dfarrell07 mentioned this pull request May 18, 2021
87 tasks
@skitt skitt force-pushed the cncf-style-copyright branch 2 times, most recently from 35d6948 to 5440ec2 Compare May 19, 2021 16:12
@skitt skitt marked this pull request as ready for review May 19, 2021 16:17
@skitt skitt force-pushed the cncf-style-copyright branch from 5440ec2 to c3ba1f5 Compare May 19, 2021 16:40
@@ -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

Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@skitt skitt force-pushed the cncf-style-copyright branch 5 times, most recently from 9661bd9 to 35ecb1f Compare May 20, 2021 10:28
@skitt skitt requested a review from tpantelis May 20, 2021 11:06
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>
@skitt skitt force-pushed the cncf-style-copyright branch from 9ab979a to 2e96396 Compare May 20, 2021 11:58
@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label May 20, 2021
@tpantelis tpantelis enabled auto-merge (rebase) May 20, 2021 16:40
@tpantelis tpantelis merged commit 87a9b89 into submariner-io:devel May 20, 2021
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1335/skitt/cncf-style-copyright]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf ready-to-test When a PR is ready for full E2E testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Copyright Notices to CNCF-recommended format
4 participants