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