opentelemetry-collector-releases icon indicating copy to clipboard operation
opentelemetry-collector-releases copied to clipboard

Switch to Go 1.22 for official builds

Open mx-psi opened this issue 6 months ago • 1 comments

Same as #383, but for Go 1.22.

Go 1.22 was released recently: go.dev/doc/go1.22

After we add testing for it on core (open-telemetry/opentelemetry-collector/issues/9507) and contrib (open-telemetry/opentelemetry-collector-contrib/issues/31105) we can switch to using the Go 1.22 compiler for official builds. Based on historical precedent this will make our life easier when dealing with security issues since we don't depend on the Go team backporting fixes and can react more quickly.

mx-psi avatar Feb 07 '24 08:02 mx-psi

Hello @mx-psi, @greut if this is still unattended and there are no blockers, I'd like to fix it.

Enzujp avatar Mar 22 '24 16:03 Enzujp

I double checked, all workflows are already on Go 1.22, the only place that's still on 1.21 is the go.mod file (repo search link). I can quickly file a PR to update that.

mowies avatar Jul 17 '24 09:07 mowies

@mowies That does not affect official builds but we can do it anyways and close this issue with that PR :)

mx-psi avatar Jul 17 '24 09:07 mx-psi

Seems like updating the version and running go mod tidy gets rid of most dependencies in there which doesn't seem right. Maybe a PR is not the best idea 😅

mowies avatar Jul 17 '24 09:07 mowies

I opened the PR in draft mode for now if you wanna check it out

mowies avatar Jul 17 '24 09:07 mowies