Skip to content

Commit 75df4e8

Browse files
authored
refactor: stop using github.com/pkg/errors (#10431)
1 parent 5de5b77 commit 75df4e8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

client/rpc/pin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package rpc
33
import (
44
"context"
55
"encoding/json"
6+
"errors"
67
"io"
78
"strings"
89

910
"github.com/ipfs/boxo/path"
1011
"github.com/ipfs/go-cid"
1112
iface "github.com/ipfs/kubo/core/coreiface"
1213
caopts "github.com/ipfs/kubo/core/coreiface/options"
13-
"github.com/pkg/errors"
1414
)
1515

1616
type PinAPI HttpApi

core/commands/pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package commands
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"io"
78
"net/http"
89
"sort"
910

1011
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
1112
mbase "github.com/multiformats/go-multibase"
12-
"github.com/pkg/errors"
1313

1414
cmds "github.com/ipfs/go-ipfs-cmds"
1515
options "github.com/ipfs/kubo/core/coreiface/options"
@@ -351,7 +351,7 @@ func urlArgsDecoder(req *cmds.Request, env cmds.Environment) error {
351351
for n, arg := range req.Arguments {
352352
encoding, data, err := mbase.Decode(arg)
353353
if err != nil {
354-
return errors.Wrap(err, "URL arg must be multibase encoded")
354+
return fmt.Errorf("URL arg must be multibase encoded: %w", err)
355355
}
356356

357357
// Enforce URL-safe encoding is used for data passed via URL arguments

core/node/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package node
22

33
import (
44
"context"
5+
"errors"
56

67
"github.com/jbenet/goprocess"
7-
"github.com/pkg/errors"
88
"go.uber.org/fx"
99
)
1010

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ require (
6565
github.com/multiformats/go-multihash v0.2.3
6666
github.com/opentracing/opentracing-go v1.2.0
6767
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
68-
github.com/pkg/errors v0.9.1
6968
github.com/prometheus/client_golang v1.19.1
7069
github.com/stretchr/testify v1.9.0
7170
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
@@ -197,6 +196,7 @@ require (
197196
github.com/pion/transport/v2 v2.2.4 // indirect
198197
github.com/pion/turn/v2 v2.1.4 // indirect
199198
github.com/pion/webrtc/v3 v3.2.23 // indirect
199+
github.com/pkg/errors v0.9.1 // indirect
200200
github.com/pmezard/go-difflib v1.0.0 // indirect
201201
github.com/polydawn/refmt v0.89.0 // indirect
202202
github.com/prometheus/client_model v0.6.1 // indirect

0 commit comments

Comments
 (0)