build: upgrade golangci to 1.22.2 (#20566)

* build: upgrade golangci to 1.22.2

* .golangci.yml: don't fail on asset deadcode
This commit is contained in:
Guillaume Ballet
2020-01-16 13:09:38 +01:00
committed by Péter Szilágyi
parent b3b8d36995
commit 1ee754b056
3 changed files with 21 additions and 16 deletions

View File

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