build: upgrade to golangci-lint v1.42.0 (#23461)

The new linter version is built with go 1.17 and thus includes the go vet
check for mismatched +build and go:build lines.

Fortunately, no new warnings are reported with this update.
This commit is contained in:
Felix Lange
2021-08-25 13:21:09 +02:00
committed by GitHub
parent 83ad92c421
commit 45f34430fd
2 changed files with 21 additions and 18 deletions

View File

@ -330,7 +330,7 @@ func doLint(cmdline []string) {
// downloadLinter downloads and unpacks golangci-lint.
func downloadLinter(cachedir string) string {
const version = "1.39.0"
const version = "1.42.0"
csdb := build.MustLoadChecksums("build/checksums.txt")
base := fmt.Sprintf("golangci-lint-%s-%s-%s", version, runtime.GOOS, runtime.GOARCH)