-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[WIP] 🌱 Regenerate with Go 1.17rc1 #4953
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
[WIP] 🌱 Regenerate with Go 1.17rc1 #4953
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ab6f2c6
to
f4cec23
Compare
Signed-off-by: Stefan Büringer [email protected]
f4cec23
to
6d17ee2
Compare
Q: Does this impact developers (What if they run make generate locally with an older version of go)? |
Yeah, it would seem a bit weird to impose this on devs as a requirement. Kubernetes acts a a canary for Go releases, which is why we got bumped to a release candidate version in CI to ensure Go 1.17 is good to go, but it's not our policy to build against RC versions. Can we disable the go 1.17 vet warning for mismatched headers? |
@randomvariable @fabriziopandini Note: The difference is that in every generated file we now have the following header: //go:build !ignore_autogenerated_core_v1alpha3
// +build !ignore_autogenerated_core_v1alpha3 Instead of only: // +build !ignore_autogenerated_core_v1alpha3 Alternative solutions:
|
It's in the release notes for Go 1.17: https://tip.golang.org/doc/go1.17
We could do a hack here with |
gofmt (1.17) also works |
As written above let's continue in: #4954 |
/hold |
/close |
@sbueringer: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Stefan Büringer [email protected]
Please ignore this PR for now, let's discuss it via #4954 first
What this PR does / why we need it:
Our CI Image has been bumped yesterday: test-infra commit. The new image now uses Go 1.17 rc1.
In case we stay on Go 1.17 rc1 this PR would fix our CI by:
But I'm not sure what our policy regarding Go upgrades is.
(Note: the Go upgrade only affects the targets we run directly on the host which should be mostly things like generate or lint, our release artifacts are not affected)
P.S. I regenerated via:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #