Skip to content

Commit 6e5203b

Browse files
kbutzkbutzsezzle
andauthored
Remove direct usage of archived github.com/pkg/errors (vitessio#17933) (vitessio#17934)
Signed-off-by: kyle.butz <[email protected]> Signed-off-by: kbutz <[email protected]> Co-authored-by: kyle.butz <[email protected]>
1 parent da61396 commit 6e5203b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ require (
4444
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c // indirect
4545
github.com/pierrec/lz4 v2.6.1+incompatible
4646
github.com/pires/go-proxyproto v0.8.0
47-
github.com/pkg/errors v0.9.1
47+
github.com/pkg/errors v0.9.1 // indirect
4848
github.com/planetscale/pargzip v0.0.0-20201116224723-90c7fc03ea8a
4949
github.com/planetscale/vtprotobuf v0.6.1-0.20241121165744-79df5c4772f2
5050
github.com/prometheus/client_golang v1.20.5

go/test/endtoend/encryption/encryptedtransport/encrypted_transport_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ import (
6363
"path"
6464
"testing"
6565

66-
"github.com/pkg/errors"
67-
6866
"vitess.io/vitess/go/constants/sidecar"
6967
"vitess.io/vitess/go/test/endtoend/encryption"
7068

@@ -305,7 +303,7 @@ func clusterSetUp(t *testing.T) (int, error) {
305303

306304
// Start topo server
307305
if err := clusterInstance.StartTopo(); err != nil {
308-
return 1, errors.Wrap(err, "unable to start topo")
306+
return 1, fmt.Errorf("unable to start topo %w", err)
309307
}
310308

311309
// create all certs
@@ -391,7 +389,7 @@ func clusterSetUp(t *testing.T) (int, error) {
391389
for _, proc := range mysqlProcesses {
392390
err := proc.Wait()
393391
if err != nil {
394-
return 1, errors.Wrap(err, "unable to wait on mysql process")
392+
return 1, fmt.Errorf("unable to wait on mysql process %w", err)
395393
}
396394
}
397395
return 0, nil

0 commit comments

Comments
 (0)