-
Notifications
You must be signed in to change notification settings - Fork 5k
Bump Go version to 1.25.4 #46793
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
base: main
Are you sure you want to change the base?
Bump Go version to 1.25.4 #46793
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
joecompute
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.
LGTM
|
There is a new Go Vet rule: https://go.dev/doc/go1.25#vet So many builds are breaking with: |
|
The These appear to be golang/go#75148, which should be fixable when golang/go#74630 is implemented. However, in order to upgrade to Go 1.25.1 now, we'll need to find a workaround. |
5fab649 to
b49d237
Compare
These errors are coming from Go downloading dependencies before executing the tests. The errors can be simulated like so: I ran into the same problem in elastic/elastic-agent#10156 and I had success with explicitly downloading the dependencies before executing the tests. I'm running into a different problem on that PR now; once it's sorted out, I will apply the same approach on this PR here. Moving this PR into draft until then. |
|
MacOS packaging steps are failing in CI like so (this example is from trying to package Agentbeat): From https://go.dev/doc/go1.25#darwin:
And it looks like we're still using either the 10.11 or 11.3 MacOS SDK in golang-crossbuild images. |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
faae77a to
6f97853
Compare
|
Hi @khushijain21, one of the test failures in this PR is Could you help me figure out where this error is coming from, please? You can reproduce this test failure in isolation by checking out this PR, and running: |
6f97853 to
efd4f16
Compare
efd4f16 to
8819cff
Compare
This PR bumps up the Golang version to
1.25.4. It also:ms_tls13kdfGolang build tag when building in FIPS mode because this tag was only needed with Golang versions1.24.x.GODEBUG=tlsmlkem=0environment variable when running FIPS140-only unit tests. This prevents errors like so:Failed to connect: crypto/ecdh: use of X25519 is not allowed in FIPS 140-only mode.fmt.Sprintf("%s:%d", ip, port)code fragments withnet.JoinHostPort(ip, strconv.Itoa(int(port)))to work with the newhostportgo vetanalyzer.