From 57cc328941bd205f63461d7d45e5119ac280e1e1 Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Tue, 6 Jun 2023 11:46:16 -0700 Subject: [PATCH] ci: use new depguard config New version of golangci-lint pulled in a new version of depguard that changed the API, see https://github.com/golangci/golangci-lint/issues/3877 --- .golangci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 56777ec17..59ffffd09 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,12 +8,14 @@ issues: linters-settings: depguard: - list-type: blacklist - packages: - - k8s.io/kubernetes - packages-with-error-message: - - k8s.io/kubernetes: >- - Avoid k8s.io/kubernetes if possible to reduce transitive dependencies + rules: + main: + files: + - $all + - "!$test" + deny: + - pkg: "k8s.io/kubernetes" + desc: "Avoid if possible to reduce transitive dependencies" dupl: threshold: 100 exhaustive: