-
Notifications
You must be signed in to change notification settings - Fork 105
bump go version to 1.25 #382
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
Conversation
|
needs rebase |
Signed-off-by: Khwaja Faraz Ahmed <khwaja.ahmed@securiti.ai>
6b6ce6a to
a7b9564
Compare
|
it looks like some modules will need updates to work with go 1.25 |
Signed-off-by: Khwaja Faraz Ahmed <khwaja.ahmed@securiti.ai>
|
I think you may need to also run |
Signed-off-by: Khwaja Faraz Ahmed <khwaja.ahmed@securiti.ai>
|
@brandond did the CI timeout? |
|
There are regressions (golang/go#75828) in the most recent upstream golang patch releases, we're going to wait for those to be addressed and then we can update again. |
| module github.com/rancher/system-upgrade-controller | ||
|
|
||
| go 1.24.6 | ||
| go 1.25.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.
@brandond go 1.25.3 just released. should i change this line from go 1.25.0 to go 1.25.3 . toolchain needs to be changed aswell right?
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.
The bci/golang:1.25 hardcodes GOTOOLCHAIN env var to whatever patch version is in the image. That said, the new patch release isn't available from BCI yet:
brandond@dev01:~$ docker run registry.suse.com/bci/golang:1.25 go version
go version go1.25.2 linux/amd64There 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.
PS C:\Users\pc\Desktop> docker run registry.suse.com/bci/golang:1.25 go version
go version go1.25.2 linux/amd64
@brandond is there any action item from our side to push for 1.25.3?
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.
fyi; BCI got go 1.25.3
hammad.saeedi@Hammads-MacBook-Pro % docker run registry.suse.com/bci/golang:1.25 go version
go version go1.25.3 linux/arm64
brandond
left a 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.
Thanks for sticking with it!
Running: golangci-lint
Error: can't load config: the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.1)
Failed executing command with error: can't load config: the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.1)
time="2025-11-06T19:42:01Z" level=fatal msg="exit status 3"
need to bump golangci-lint as well, for golang 1.25 compat.
|
@brandond we're using v1.64.8 and thats the latest 1.x.x version released by golangci. moving to 2.x.x would mean a major version bump. Do we wanna proceed with that? |
|
Yes, we will need to switch to 2.4 if we want to use go 1.25. |
Signed-off-by: Faraz Khawaja <khwajafarazahmed@yahoo.com>
You can't just bump the golangci-lint version, you need to migrate the config from v1 -> v2 as well :/ |
Signed-off-by: Khwaja Faraz Ahmed <khwaja.ahmed@securiti.ai>
|
@brandond can you kickoff the pipeline again |
brandond
left a 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.
one change. lgtm otherwise!
Upgrades go version to 1.25
ran go mod tidy on suc/ and suc/pkg/apis folder
ran golangci-lint migrate to migrate golangci config to v2