From c8c47b1dd50480b0896aa2a26ed289be0a94d795 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 23 Dec 2024 13:51:16 +0100 Subject: [PATCH] golangci-lint: depguard: prevent uses of pkg/system We no longer use this package; add a linter rule to prevent accidentally importing it again. Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index d917f343cc..9ae09f8f9e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -59,6 +59,8 @@ linters-settings: desc: Use github.com/moby/sys/userns instead. - pkg: "github.com/containerd/containerd/platforms" desc: The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead. + - pkg: "github.com/docker/docker/pkg/system" + desc: This package should not be used unless strictly necessary. - pkg: "io/ioutil" desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil gocyclo: