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
update release-1.24 to go1.19 #113956
update release-1.24 to go1.19 #113956
Conversation
That's the |
/assign @dchen1107 @derekwaynecarr @mrunalp |
@@ -480,6 +480,7 @@ EOF | |||
local go_version | |||
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)" | |||
local minimum_go_version | |||
# TODO(liggitt): Need to switch this to 1.19 once we update images to newer go version |
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.
needs to switch?
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.
yeah, I'll update this once we switch presubmit images to run with go1.19, it would have turned all CI jobs red before that
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.
Actually, I think we should avoid bumping this until we're happy with post-submits and maybe until we cut the next 1.24 patch release. As soon as we do this, anything currently happily building off of release-1.24 with go1.18 will start failing, and I don't want to ripple out build/config changes past the immediate k8s.io/test-infra and k8s.io/release updates we're making quite yet
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.
opened #114616 with this follow-up
/approve from SIG Node. Thanks for taking care of this for the community. |
/priority important-soon |
kubernetes/test-infra#28290 updated kubekins and krte images for 1.24 /test all |
all presubmits green (including the optional azure jobs that triggered), has lgtm + approve 🎉 cc @kubernetes/release-managers |
@@ -102,15 +102,15 @@ dependencies: | |||
# This entry is a stub of the major version to allow dependency checks to | |||
# pass when building Kubernetes using a pre-release of Golang. | |||
- name: "golang: 1.<major>" | |||
version: 1.18 | |||
version: 1.19.4 |
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.
This should be 1.<major>
, i.e. 1.19
. See on master for example:
kubernetes/build/dependencies.yaml
Line 105 in 7814d10
version: 1.19 |
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 discussed on Slack, it will be fixed in a follow-up PR along with the comment from @aojea.
Ref: https://kubernetes.slack.com/archives/C2C40FMNF/p1671026815368429
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.
opened #114616 with this follow-up
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, dims, liggitt, xmudrii 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Picks commits needed to update release-1.24 to go1.19, since go1.18 goes out of support in ~Feb 2023. go1.19 is supported through ~August 2023, which covers the remainder of the 1.24 releases.
This ensures that release-1.24 can pick up future runtime security fixes.
This happens to be possible because the only behavior change we needed to adapt to in go1.19 was the ErrDot LookPath change, which we were able to accommodate in-process when release-1.25 updated to go1.19.
This PR includes commits from master branch go1.19 update:
Adjust for os/exec changes in 1.19
commit, which adjusts to preserve existing behavior with the go1.19 change to error when locating binaries in the current directoryBefore this can merge, 1.24 CI would need to be updated to use go1.19, so that gofmt and dependency CI checks pass (xref kubernetes/release#2822)
Which issue(s) this PR fixes:
xref #112408
Special notes for your reviewer:
Does this PR introduce a user-facing change?