From 45d81f849ed4c3cc8625fce460acbf2a16508799 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 1 Feb 2025 14:53:07 +0100 Subject: [PATCH] cli/command: 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/command/cli_test.go | 2 +- cli/command/utils_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/cli_test.go b/cli/command/cli_test.go index c8a724346f..b71e83a1e4 100644 --- a/cli/command/cli_test.go +++ b/cli/command/cli_test.go @@ -3,6 +3,7 @@ package command import ( "bytes" "context" + "errors" "fmt" "io" "net" @@ -22,7 +23,6 @@ import ( "github.com/docker/docker/api" "github.com/docker/docker/api/types" "github.com/docker/docker/client" - "github.com/pkg/errors" "gotest.tools/v3/assert" "gotest.tools/v3/fs" ) diff --git a/cli/command/utils_test.go b/cli/command/utils_test.go index 093eabed95..a940d876a1 100644 --- a/cli/command/utils_test.go +++ b/cli/command/utils_test.go @@ -4,6 +4,7 @@ import ( "bufio" "bytes" "context" + "errors" "fmt" "io" "os" @@ -17,7 +18,6 @@ import ( "github.com/docker/cli/cli/command" "github.com/docker/cli/cli/streams" "github.com/docker/cli/internal/test" - "github.com/pkg/errors" "gotest.tools/v3/assert" )