Merge pull request #5709 from thaJeztah/sync_depguard

golangci-lint: sync some depguard settings with moby/moby
This commit is contained in:
Paweł Gronowski 2024-12-23 12:07:29 +00:00 committed by GitHub
commit 7e73609bb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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