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
treewide: convert more license headers to SPDX #17151
Conversation
Consider me out of the loop, but how do generated files get their SPDX (or license) headers? |
Upon running
|
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.
As far as I can tell the license is copied from the .proto
file when the code is generated.
❯ head -3 observer/observer.proto
// This is my custom license setup.
// Copyright 2019 Authors of Hubble
❯ head -3 observer/observer.pb.go
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Hubble
❯ make
[...]
make: Leaving directory '/src'
❯ head -3 observer/observer.pb.go
// This is my custom license setup.
// Copyright 2019 Authors of Hubble
the original commit that introduced the spdxconv tool only updated this file: https://github.com/cilium/cilium/blob/master/hack/custom-boilerplate.go.txt @glibsm I thought that was going to take care of any protobuf gens and make generated files use the correct license header. |
Needs more work to account for generated files
OK, |
Running tools/spdxconv caught a few files not using SPDX. Signed-off-by: Tom Payne <tom@isovalent.com>
Note that this is a documentation-only change. The CI failure in the ConformanceKind1.19 / installation-and-connectivity check looks similar to #16392. |
Running tools/spdxconv caught a few files not using SPDX, mostly because they were new files created just before the SPDX change.
Refs #16887.
Signed-off-by: Tom Payne tom@isovalent.com