Skip to content

Commit

Permalink
Merge pull request #5709 from thaJeztah/sync_depguard
Browse files Browse the repository at this point in the history
golangci-lint: sync some depguard settings with moby/moby
  • Loading branch information
vvoland authored Dec 23, 2024
2 parents 45648e8 + 0c04dc0 commit 7e73609
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e73609

Please sign in to comment.