Skip to content

Upgrade runner-linters image and golangci-lint for Go 1.22

Stan Hu requested to merge sh-update-golangci-lint into main

What does this MR do?

This merge request does a number of things for the Go 1.22 upgrade in !4759 (merged):

  1. Upgrade runner-linters image to Go 1.22.
  2. Update golangci-lint to v1.58.0.
  3. Fixes golangci-lint static analysis failures.
  4. Fixes a number of configuration issues with golangci-lint: --deadline has been renamed to --timeout, and output formats have changed from output.format to output.formats in the YAML config (https://github.com/golangci/golangci-lint/pull/4521).

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Edited by Stan Hu

Merge request reports