Skip to content

Bump GO_VERSION used in pipeline

Shao Ming Tan requested to merge smtan/fix-breaking-pipeline into main

What does this MR do?

goimports job is failing as the default GO_VERSION in ci-templates is 1.19, which causes an error when installing the latest version of goimports.

Bumping the GO_VERSION to 1.22

$ go install golang.org/x/tools/cmd/goimports@latest
go: downloading golang.org/x/tools v0.25.0
go: golang.org/x/tools/cmd/goimports@latest: golang.org/x/tools@v0.25.0 requires go >= 1.22.0 (running go 1.21.13; GOTOOLCHAIN=local)

Bumping GO_VERSION to 1.21, but this causes the above error.

$ go install golang.org/x/tools/cmd/goimports@latest
go: downloading golang.org/x/tools v0.25.0
go: golang.org/x/tools/cmd/goimports@latest (in golang.org/x/tools@v0.25.0): go.mod:3: invalid go version '1.22.0': must match format 1.23

Why are we doing this?

What are the relevant issue numbers?

Edited by Shao Ming Tan

Merge request reports