Skip to content

Commit c8c47b1

Browse files
committed
golangci-lint: depguard: prevent uses of pkg/system
We no longer use this package; add a linter rule to prevent accidentally importing it again. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 76ec0ea commit c8c47b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ linters-settings:
5959
desc: Use github.com/moby/sys/userns instead.
6060
- pkg: "github.com/containerd/containerd/platforms"
6161
desc: The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead.
62+
- pkg: "github.com/docker/docker/pkg/system"
63+
desc: This package should not be used unless strictly necessary.
6264
- pkg: "io/ioutil"
6365
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
6466
gocyclo:

0 commit comments

Comments
 (0)