From 2e26ce145b17355c4384bde4cb83341e1f9a1f7b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 1 Feb 2025 19:48:46 +0100 Subject: [PATCH] e2e/testutils: 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 --- e2e/testutils/plugins.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e/testutils/plugins.go b/e2e/testutils/plugins.go index e194eef9a5..1485f425b1 100644 --- a/e2e/testutils/plugins.go +++ b/e2e/testutils/plugins.go @@ -13,7 +13,6 @@ import ( "testing" "github.com/docker/docker/api/types" - "github.com/pkg/errors" "gotest.tools/v3/assert" "gotest.tools/v3/fs" "gotest.tools/v3/icmd" @@ -87,7 +86,7 @@ func buildPlugin(t *testing.T, ctx context.Context) (string, error) { cmd.Env = append(os.Environ(), "CGO_ENABLED=0") if out, err := cmd.CombinedOutput(); err != nil { - return "", errors.Wrapf(err, "error building basic plugin bin: %s", string(out)) + return "", fmt.Errorf("error building basic plugin bin: %s: %w", string(out), err) } return installPath, nil