use consistent alias for stdlib "errors"

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2026-01-27 11:14:27 +01:00
parent 715580be70
commit 3eee42b002
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -62,6 +62,8 @@ linters:
- unusedwrite
importas:
alias:
- pkg: "errors"
alias: "stderrors"
- pkg: "github.com/containerd/errdefs"
alias: "cerrdefs"
- pkg: "github.com/moby/moby/client"
+2 -2
View File
@@ -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)
}