Update golangci-lint to 1.45.2

This requires a further set of gofmt -s improvements to the
code, but nothing major. golangci-lint 1.45.2 brings golang 1.18
support which might be needed in the future.

Signed-off-by: Dirk Müller <dirk@dmllr.de>
This commit is contained in:
Dirk Müller 2022-04-08 19:44:40 +02:00 committed by Brad Davidson
parent 5cb4894a50
commit fa0fa8b1d0
16 changed files with 15 additions and 16 deletions

View File

@ -35,7 +35,7 @@ RUN GOPROXY=direct go get golang.org/x/tools/cmd/goimports@gopls/v0.7.0
RUN rm -rf /go/src /go/pkg
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.41.1; \
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.45.2; \
fi
ENV YQ_URL=https://github.com/mikefarah/yq/releases/download/v4.6.2/yq_linux

View File

@ -1,4 +1,4 @@
// +build !windows
//go:build !windows
package containerd

View File

@ -1,4 +1,4 @@
// +build linux
//go:build linux
package loadbalancer

View File

@ -1,4 +1,4 @@
// +build !windows
//go:build !windows
package syssetup

View File

@ -1,4 +1,4 @@
// +build linux
//go:build linux
package templates

View File

@ -1,4 +1,4 @@
// +build linux
//go:build linux
package cmds

View File

@ -1,4 +1,4 @@
// +build linux,cgo
//go:build linux && cgo
package cmds

View File

@ -1,4 +1,4 @@
// +build !no_stage
//go:build !no_stage
package cmds

View File

@ -1,4 +1,4 @@
// +build !ctrd
//go:build !ctrd
package containerd

View File

@ -1,4 +1,4 @@
// +build linux
//go:build linux
package containerd

View File

@ -1,4 +1,4 @@
// +build !no_stage
//go:build !no_stage
package deploy

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd openbsd netbsd dragonfly
//go:build linux || darwin || freebsd || openbsd || netbsd || dragonfly
/*
Copyright 2016 The Kubernetes Authors.

View File

@ -1,5 +1,4 @@
//go:build linux || darwin || freebsd || openbsd || netbsd || dragonfly
// +build linux darwin freebsd openbsd netbsd dragonfly
/*
Copyright 2016 The Kubernetes Authors.

View File

@ -1,4 +1,4 @@
// +build !windows
//go:build !windows
package rootless

View File

@ -1,4 +1,4 @@
// +build !no_stage
//go:build !no_stage
package static

View File

@ -1,4 +1,4 @@
// +build !windows
//go:build !windows
package util