Skip to content

Commit 0c04dc0

Browse files
committed
golangci-lint: sync some depguard settings with moby/moby
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 45648e8 commit 0c04dc0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.golangci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ linters-settings:
5151
rules:
5252
main:
5353
deny:
54-
- pkg: io/ioutil
54+
- pkg: "github.com/containerd/containerd/errdefs"
55+
desc: The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead.
56+
- pkg: "github.com/containerd/containerd/log"
57+
desc: The containerd log package was migrated to a separate module. Use github.com/containerd/log instead.
58+
- pkg: "github.com/containerd/containerd/pkg/userns"
59+
desc: Use github.com/moby/sys/userns instead.
60+
- pkg: "github.com/containerd/containerd/platforms"
61+
desc: The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead.
62+
- pkg: "io/ioutil"
5563
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
5664
gocyclo:
5765
min-complexity: 16

0 commit comments

Comments
 (0)