diff --git a/Dockerfile b/Dockerfile index 81a0986dff..892fcabb3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -202,7 +202,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ PREFIX=/build /install.sh containerd FROM base AS golangci_lint -ARG GOLANGCI_LINT_VERSION=v1.44.0 +ARG GOLANGCI_LINT_VERSION=v1.46.2 RUN --mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/go/pkg/mod \ GOBIN=/build/ GO111MODULE=on go install "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}" \ diff --git a/hack/validate/golangci-lint.yml b/hack/validate/golangci-lint.yml index 0eb7e26c3b..e1c7d40480 100644 --- a/hack/validate/golangci-lint.yml +++ b/hack/validate/golangci-lint.yml @@ -49,7 +49,7 @@ issues: # ID's. # # These exclusion patterns are copied from the default excluses at: - # https://github.com/golangci/golangci-lint/blob/v1.44.0/pkg/config/issues.go#L10-L104 + # https://github.com/golangci/golangci-lint/blob/v1.46.2/pkg/config/issues.go#L10-L104 # EXC0001 - text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*print(f|ln)?|os\\.(Un)?Setenv). is not checked" @@ -104,7 +104,7 @@ issues: linters: - golint # FIXME temporarily suppress these. See #39924 - - text: "SA1019: .*\\.Xattrs is deprecated: Use PAXRecords instead" + - text: "SA1019: .*\\.Xattrs has been deprecated since Go 1.10: Use PAXRecords instead" linters: - staticcheck # FIXME temporarily suppress these. See #39926