-
Notifications
You must be signed in to change notification settings - Fork 84
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
if the file is a generated and does not have date stop the checks #247
Conversation
Signed-off-by: Carlos Panato <[email protected]>
if agree we will need a new release to be able to use in release-sdk/utils |
need in this pr: kubernetes-sigs/release-sdk#25 tested the change in that pr as well |
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.
Thanks @cpanato!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, justaugustus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Something to consider: #248 |
Out of curiosity... are you checking for copyrights in generated files? I ask, because typically I tend to think of copyright checks as linting, and linters aren't supposed to lint generated files. Typically linters don't lint generated files, detecting that they are generated by looking for the pattern at the top of generated files: ^// Code generated .* DO NOT EDIT\.$ Per https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source |
We do indeed! repo-infra/hack/verify_boilerplate.py Lines 79 to 83 in 201dcad
Though there may be some duplicative logic: repo-infra/hack/verify_boilerplate.py Lines 156 to 158 in 201dcad
|
in a generated go file that does not have the date the current boilerplate is failing, because it tries to find a date where does not exist.
if is a generated file and passes in the check for that we should return and not perform the year validation
/assign @saschagrunert @justaugustus