Forbid github.com/pkg/errors in k/k

kubeadm has replaced pkg/errors with an internal implementation, which
means that pkg/errors can be marked as unwanted (once a final
straggler is replaced).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt
2025-06-05 16:54:53 +02:00
committed by Lubomir I. Ivanov
parent efaaece0fb
commit d1bddfd779
4 changed files with 0 additions and 22 deletions

View File

@@ -254,13 +254,6 @@ linters:
deny:
- pkg: "github.com/google/go-cmp/cmp"
desc: "cmp is allowed only in test files"
pkg-errors:
files:
- $all
- "!**/cmd/kubeadm/**"
deny:
- pkg: "github.com/pkg/errors"
desc: "pkg/errors is allowed only in cmd/kubeadm"
forbidigo:
analyze-types: true
forbid:

View File

@@ -268,13 +268,6 @@ linters:
deny:
- pkg: "github.com/google/go-cmp/cmp"
desc: "cmp is allowed only in test files"
pkg-errors:
files:
- $all
- "!**/cmd/kubeadm/**"
deny:
- pkg: "github.com/pkg/errors"
desc: "pkg/errors is allowed only in cmd/kubeadm"
forbidigo:
analyze-types: true
forbid:

View File

@@ -198,13 +198,6 @@ linters:
deny:
- pkg: "github.com/google/go-cmp/cmp"
desc: "cmp is allowed only in test files"
pkg-errors:
files:
- $all
- "!**/cmd/kubeadm/**"
deny:
- pkg: "github.com/pkg/errors"
desc: "pkg/errors is allowed only in cmd/kubeadm"
forbidigo:
analyze-types: true
forbid:

View File

@@ -227,7 +227,6 @@
"github.com/pkg/errors": [
"github.com/Microsoft/hnslib",
"github.com/google/cadvisor",
"k8s.io/kubernetes",
"sigs.k8s.io/kustomize/api",
"sigs.k8s.io/kustomize/kustomize/v5"
],