-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Indent missmatches after running .hack/update-codegen.sh
#5771
Comments
Yeah, I've seen this pop up but haven't reproduced it myself (though I'm running |
@XinruZhang did you find a workaround here? Running into the same issue on #5945 |
@lbernick Unfortunately no, I tried to trace back to https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/staging/src/k8s.io/code-generator/cmd/client-gen/generators/scheme/generator_for_scheme.go#L157, but nothing wrong with it (it uses spaces instead of tabs) Since we have a workaround -- manually replace |
Pretty sure this is caused by the gofmt changes in Go 1.19. We're still using 1.18 https://github.com/tektoncd/plumbing/blob/244a3ab6ae4b64f05d3dfb2fd152fcd98232e543/prow/config.yaml#L1183 |
@wlynch ah.. I updated the image but not the jobs 🤦🏼 |
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: tektoncd#5944 tektoncd#5771 Signed-off-by: pritidesai <[email protected]>
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: tektoncd#5944 tektoncd#5771 Signed-off-by: pritidesai <[email protected]>
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: #5944 #5771 Signed-off-by: pritidesai <[email protected]>
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: tektoncd#5944 tektoncd#5771 Signed-off-by: Yongxuan Zhang [email protected]
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: tektoncd#5944 tektoncd#5771 Signed-off-by: Yongxuan Zhang [email protected]
The golang linting was upgraded in our CI to accomodate gofmt changes in Go 1.19. Please refer to the related PRs/issues: #5944 #5771 Signed-off-by: Yongxuan Zhang [email protected]
Feature request
./hack/update-codegen.sh
should avoid usingtab
to indent.Use case
In #5765, I updated Custom Task API Spec by adding new fields. Per https://github.com/tektoncd/pipeline/blob/main/hack/README.md, I ran
./hack/update-codegen.sh
to generate corresponding client code and pushed the PR.However, our CI failed to build (
pull-tekton-pipeline-build-tests
failed) because of indent mismatches, see the result.The text was updated successfully, but these errors were encountered: