-
Notifications
You must be signed in to change notification settings - Fork 9
Add missing Goheaders #7
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
Conversation
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.
Can we use 2025 only everywhere? 👀
The issue is that some code will be copy/paste from current Elemental code (see PR #2) and not sure if the linter will be happy. Will check. |
You're right. I guess maybe we can actively adjust the code to point to 2025 instead? The linter will fail unless the new files are adjusted and I guess it makes sense to go for 2025 even if some of the code is completely copy-pasted. Thoughts? |
I checked in others projects in Rancher and some are using regex for this, will try to use this. I think it's better to keep the original date for older files. |
Using New files should be like this: @davidcassany the internal |
fdf83ab
to
b9fecc1
Compare
Signed-off-by: Loic Devulder <[email protected]>
b9fecc1
to
c1c6258
Compare
I have two comments about this, not specific to this PR or the files in this repository but a general approach to copyright notices, license files and so on. Please note that I'm not sure if SUSE has a policy around this and if so, what I suggest below may not be valid.
[1] https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects |
I'd simply fix copied code and adapt wherever necessary. In any case if we can avoid having the year there that would be even better. So I think we should try to figure out the actual requirements for the header first. |
Yes but legal team asked for this some times ago. See ou Slack channel for a more detailed answer.
I was thinking of this yes, but we followed the Apache license rules, but I think we can add it without any issue. Any comment from others on this? I can add it anyway. |
More detailed answer in the Slack channel, but it seems that we should keep it as-is. |
c1c6258
to
d460008
Compare
Signed-off-by: Loic Devulder <[email protected]>
Signed-off-by: Loic Devulder <[email protected]>
3e10922
to
19f89fb
Compare
The lint errors/warnings on the code itself will be fixed in a separate PR. |
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
Add missing headers in Go files to make
golangci-lint
happy.