From 677e8d90494c439346f0ea5cd56febc6fbb7f076 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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 56777ec17..d7eb46dc6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,12 +8,11 @@ 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: + deny: + - pkg: "k8s.io/kubernetes" + desc: "Avoid if possible to reduce transitive dependencies" dupl: threshold: 100 exhaustive: