-
Notifications
You must be signed in to change notification settings - Fork 277
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
Upgrade Go version to v1.22.6 #2859
Upgrade Go version to v1.22.6 #2859
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
@@ -1,6 +1,6 @@ | |||
module sigs.k8s.io/kueue | |||
|
|||
go 1.22.4 | |||
go 1.22.6 |
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 think it will not work well with gcb-docker-gcloud
. The gcb-docker-gcloud
now using go v1.22.5. If we will update it to go v1.22.6, we will have an error on post-kueue-push-images
as we already had on #2611 and https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-kueue-push-images/1812819196258553856.
There are two solution that I can see. We can try to use https://go.dev/doc/toolchain as recommended here. Or we need to update gcb-docker-gcloud
image first (https://github.com/kubernetes/test-infra/blob/master/images/gcb-docker-gcloud/cloudbuild.yaml#L17).
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
a69e280
to
28edd58
Compare
@alculquicondor @mbobrovskyi After more investigating, I found another approach like this: cf781b2 How about this? Indeed, building processes are available even if we can use the local gotoolchain like this: $ docker run --rm -e GOTOOLCHAIN=local -it --name test-integration -v .:/go/src/kubernetes-sigs/kueue -w /go/src/kubernetes-sigs/kueue gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36 -c "make yq"
go: downloading github.com/mikefarah/yq/v4 v4.44.3
go: downloading gopkg.in/op/go-logging.v1 v1.0.0-20160211212156-b2cb9fa56473
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/a8m/envsubst v1.4.2
go: downloading github.com/alecthomas/participle/v2 v2.1.1
go: downloading github.com/elliotchance/orderedmap v1.6.0
go: downloading github.com/fatih/color v1.17.0
go: downloading github.com/dimchansky/utfbom v1.1.1
go: downloading github.com/goccy/go-json v0.10.3
go: downloading github.com/goccy/go-yaml v1.12.0
go: downloading github.com/jinzhu/copier v0.4.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.2.2
go: downloading github.com/yuin/gopher-lua v1.1.1
go: downloading golang.org/x/net v0.27.0
go: downloading golang.org/x/text v0.16.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
go: downloading golang.org/x/sys v0.22.0
$
$ echo $?
0 |
28edd58
to
617f81f
Compare
cmd/experimental/kjobctl/go.mod
Outdated
go 1.22.4 | ||
|
||
toolchain go1.22.6 | ||
|
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.
kjobctl still requires the 1.22.4 explicitly.
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
617f81f
to
cf781b2
Compare
Yes, but it's still automatically updating go to 1.22.6 after |
Could you check the latest commit? I can not observe the automatic updates. |
Yes, the same. I'm trying to execute
|
Oh, I see. I could observe it... |
Can you leave it as |
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
Sure. I applied changes to the latest commit. |
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.
Let's hope for the best and revert if it doesn't work :)
/lgtm
/approve
LGTM label has been added. Git tree hash: ae40493f528fdea7c3a095526daeabbc1e43a9c9
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, tenzen-y 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 |
* Stop the Go patch version in the go module directive Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Point the Go 1.22 in the root module. Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> * Explictly use Go 1.22.6 and GOTOOLCHAIN=auto Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com> --------- Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
I upgraded the Go version to v1.22.6 since the minimum required Go version is upgraded to v1.22.6 in the hugo: https://github.com/gohugoio/hugo/blob/c9777473d1369f812d727a6c07dc57ad7be7bf62/go.mod#L172
If we do not upgrade the version, developers face some dependency issues when they use the IDEs depend on the "'go list -modfile" like JetBrains.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?