From c55b39a2e00bc16c017cb7f9c70fd03c005532dd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 1 Feb 2025 14:54:22 +0100 Subject: [PATCH] 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 --- cli/config/credentials/native_store_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/config/credentials/native_store_test.go b/cli/config/credentials/native_store_test.go index f55d269ed5..c2f843bfbb 100644 --- a/cli/config/credentials/native_store_test.go +++ b/cli/config/credentials/native_store_test.go @@ -2,6 +2,7 @@ package credentials import ( "encoding/json" + "errors" "fmt" "io" "strings" @@ -10,7 +11,6 @@ import ( "github.com/docker/cli/cli/config/types" "github.com/docker/docker-credential-helpers/client" "github.com/docker/docker-credential-helpers/credentials" - "github.com/pkg/errors" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) @@ -22,7 +22,7 @@ const ( missingCredsAddress = "https://missing.docker.io/v1" ) -var errCommandExited = errors.Errorf("exited 1") +var errCommandExited = errors.New("exited 1") // mockCommand simulates interactions between the docker client and a remote // credentials helper.