From 77a15222c2870994764a4d76f15fb4e4c0474c47 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 2 Sep 2022 21:24:26 +0200 Subject: [PATCH] update to golangci-lint v1.49.0 for compatibilty with go1.19 Remove the "structcheck" and "varcheck" linters, as they have been deprecated: WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. WARN [linters context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the golangci/golangci-lint#2649. Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 2 -- dockerfiles/Dockerfile.lint | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 1d8f1ba60d6b..9d1d3d5835ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -15,13 +15,11 @@ linters: - misspell - nakedret - staticcheck - - structcheck - typecheck - unconvert - unparam - unused - revive - - varcheck disable: - errcheck diff --git a/dockerfiles/Dockerfile.lint b/dockerfiles/Dockerfile.lint index 6c1ce4225b99..46368784db3c 100644 --- a/dockerfiles/Dockerfile.lint +++ b/dockerfiles/Dockerfile.lint @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 ARG GO_VERSION=1.18.5 -ARG GOLANGCI_LINT_VERSION=v1.45.2 +ARG GOLANGCI_LINT_VERSION=v1.49.0 FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint