From 0c04dc05ba999c75a2c1b9fa8f4de89d685c1e4b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 21 Dec 2024 15:08:23 +0100 Subject: [PATCH] golangci-lint: sync some depguard settings with moby/moby Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 31d663434f..d917f343cc 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -51,7 +51,15 @@ linters-settings: rules: main: deny: - - pkg: io/ioutil + - pkg: "github.com/containerd/containerd/errdefs" + desc: The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead. + - pkg: "github.com/containerd/containerd/log" + desc: The containerd log package was migrated to a separate module. Use github.com/containerd/log instead. + - pkg: "github.com/containerd/containerd/pkg/userns" + 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: "io/ioutil" desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil gocyclo: min-complexity: 16