-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
[3.4] Update golang toolchain to 1.23.6 #19429
[3.4] Update golang toolchain to 1.23.6 #19429
Conversation
Hi @joshjms. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
@@ -1,8 +1,8 @@ | |||
module go.etcd.io/etcd | |||
|
|||
go 1.22 | |||
go 1.23 |
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 is equivalent to latest patch version of go 1.23, is this your intention or using 1.23.0 would be more appropriate ?
Defining the patch version forces the modules depending on this one to upgrade their own go module version, so I would recommend using go 1.23.0 with toolchain using latest patch version of the 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.
I referred to the go.mod
file in the main branch. Will change accordingly.
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.
You can keep 1.23.6 as currently used version for the project (.go-version and toolchains directives) . It's just the go directive in go.mod that shall use 1.23.0
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.
I see, thanks a lot! I'll update in my PR for release-3.5
as well. As of this reply, I have changed the go directives.
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.
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.
That's just my humble recommendation
go.mod
Outdated
@@ -1,8 +1,8 @@ | |||
module go.etcd.io/etcd | |||
|
|||
go 1.22 | |||
go 1.23.0 |
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 "1.23"?
Same comment as #19430 (comment)
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.
Sure, I'll change it.
If I'm not mistaken, the go
directive is just there to enforce the minimum version to build, therefore 1.23 and 1.23.0 should be the same.
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.
therefore 1.23 and 1.23.0 should be the same.
It's true, but "1.23" is preferred,
- It's more explicit that we don't require/force any applications (which depend on etcd) to use any go patch 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.
1.23 is not equal to 1.23.0 but to 1.23.6 until 1.23.7 comes 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.
Ah, I'm under the impression that 1.23 = 1.23.x (compatible with any x). So in the case where the minimum version is 1.23, it will take 1.23.0 (as it is the minimum of all 1.23.x). Thanks for the insights.
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.
@ahrtr done
please squash the commit |
/ok-to-test |
Signed-off-by: joshjms <[email protected]> update go directive in go.mod to 1.23.0 Signed-off-by: joshjms <[email protected]> change go directive to 1.23 Signed-off-by: joshjms <[email protected]>
7f79f56
to
2d2b20e
Compare
i squashed the commit @ahrtr |
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
Thank you!
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. Thanks, @joshjms.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, ivanvc, joshjms, mmorel-35 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 |
.go-version
to 1.23.6go.mod
files to1.23.0
1.23.6
Subtask of #19417