Skip to content

Update go and golangci-lint version

Axel von Bertoldi requested to merge avonbertoldi/update-go1.18 into master

What does this MR do?

Update the versions of go and golangci-lint in this image to 1.18.4 and 1.46.2 respectively.

Why was this MR needed?

This is a prerequisite to upgrading the version of go and golangci-lint in gitlab-runner. To update the version of go in gital-runner to 1.18 we need to also update the linter version (or at least it's a good idea to do so). But to update the linter version, we have to update https://gitlab.com/gitlab-org/language-tools/go/linters/goargs to make the latter compatible with the new linter version (a plugin and its consumer must use the same versions for common dependencies). This was done in gitlab-org/language-tools/go/linters/goargs!4 (merged), but that actually breaks gitlab-runner's build because now that repo's linter version is not compatible with goargs. gitlab-org/gitlab-runner!3536 (merged) restores that compatibility, but for that MR's Ci pipeline to pass, a compatible version of this image must exist (i.e. :1.46.2-go1.18). This MR creates that image.

What's the best way to test this MR?

CI passes.

What are the relevant issue numbers?

Merge request reports