Merge pull request #3629 from thaJeztah/errs_alias
use consistent alias for stdlib "errors"
This commit is contained in:
@@ -64,6 +64,8 @@ linters:
|
|||||||
- unusedwrite
|
- unusedwrite
|
||||||
importas:
|
importas:
|
||||||
alias:
|
alias:
|
||||||
|
- pkg: "errors"
|
||||||
|
alias: "stderrors"
|
||||||
- pkg: "github.com/containerd/errdefs"
|
- pkg: "github.com/containerd/errdefs"
|
||||||
alias: "cerrdefs"
|
alias: "cerrdefs"
|
||||||
- pkg: "github.com/moby/moby/client"
|
- pkg: "github.com/moby/moby/client"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package commands
|
package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
stderrs "errors"
|
stderrors "errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/cli/cli/command"
|
"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()))
|
errs = append(errs, errors.New("DisableFlagsInUseLine is not set for "+c.CommandPath()))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
err = stderrs.Join(errs...)
|
err = stderrors.Join(errs...)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user