Upgrade runner-linters image and golangci-lint for Go 1.22
What does this MR do?
This merge request does a number of things for the Go 1.22 upgrade in !4759 (merged):
- Upgrade runner-linters image to Go 1.22.
- Update golangci-lint to v1.58.0.
- Fixes golangci-lint static analysis failures.
- Fixes a number of configuration issues with golangci-lint:
--deadline
has been renamed to--timeout
, and output formats have changed fromoutput.format
tooutput.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