diff --git a/.golangci.yml b/.golangci.yml index 42f1b0146..fc62c3148 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -64,6 +64,8 @@ linters: - unusedwrite importas: alias: + - pkg: "errors" + alias: "stderrors" - pkg: "github.com/containerd/errdefs" alias: "cerrdefs" - pkg: "github.com/moby/moby/client" diff --git a/commands/root_test.go b/commands/root_test.go index edaf0d54d..a96193282 100644 --- a/commands/root_test.go +++ b/commands/root_test.go @@ -1,7 +1,7 @@ package commands import ( - stderrs "errors" + stderrors "errors" "testing" "github.com/docker/cli/cli/command" @@ -21,7 +21,7 @@ func TestDisableFlagsInUseLineIsSet(t *testing.T) { errs = append(errs, errors.New("DisableFlagsInUseLine is not set for "+c.CommandPath())) } }) - err = stderrs.Join(errs...) + err = stderrors.Join(errs...) require.NoError(t, err) }