Browse Source

ci: bump golangci-lint to v1.53.x (#10659)

Requires some changes for depguard config

Signed-off-by: Milas Bowman <[email protected]>
Milas Bowman 2 years ago
parent
commit
be6c9565e3
2 changed files with 6 additions and 7 deletions
  1. 5 6
      .golangci.yml
  2. 1 1
      Dockerfile

+ 5 - 6
.golangci.yml

@@ -31,12 +31,11 @@ linters-settings:
       - name: package-comments
         disabled: true
   depguard:
-    list-type: denylist
-    include-go-root: true
-    packages:
-      # The io/ioutil package has been deprecated.
-      # https://go.dev/doc/go1.16#ioutil
-      - io/ioutil
+    rules:
+      all:
+        deny:
+          - pkg: io/ioutil
+            desc: 'io/ioutil package has been deprecated'
   gomodguard:
     blocked:
       versions:

+ 1 - 1
Dockerfile

@@ -17,7 +17,7 @@
 
 ARG GO_VERSION=1.20.4
 ARG XX_VERSION=1.2.1
-ARG GOLANGCI_LINT_VERSION=v1.52.2
+ARG GOLANGCI_LINT_VERSION=v1.53.2
 ARG ADDLICENSE_VERSION=v1.0.0
 
 ARG BUILD_TAGS="e2e"