Skip to content

Commit c55b39a

Browse files
committed
cli/config/credentials: remove uses of pkg/errors in tests
While there may be reasons to keep pkg/errors in production code, we don't need them for these tests. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 832f5fa commit c55b39a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/config/credentials/native_store_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package credentials
22

33
import (
44
"encoding/json"
5+
"errors"
56
"fmt"
67
"io"
78
"strings"
@@ -10,7 +11,6 @@ import (
1011
"github.com/docker/cli/cli/config/types"
1112
"github.com/docker/docker-credential-helpers/client"
1213
"github.com/docker/docker-credential-helpers/credentials"
13-
"github.com/pkg/errors"
1414
"gotest.tools/v3/assert"
1515
is "gotest.tools/v3/assert/cmp"
1616
)
@@ -22,7 +22,7 @@ const (
2222
missingCredsAddress = "https://missing.docker.io/v1"
2323
)
2424

25-
var errCommandExited = errors.Errorf("exited 1")
25+
var errCommandExited = errors.New("exited 1")
2626

2727
// mockCommand simulates interactions between the docker client and a remote
2828
// credentials helper.

0 commit comments

Comments
 (0)