Skip to content

Commit

Permalink
refactor: stop using github.com/pkg/errors (#10431)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed May 26, 2024
1 parent 5de5b77 commit 75df4e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/rpc/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package rpc
import (
"context"
"encoding/json"
"errors"
"io"
"strings"

"github.com/ipfs/boxo/path"
"github.com/ipfs/go-cid"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
"github.com/pkg/errors"
)

type PinAPI HttpApi
Expand Down
4 changes: 2 additions & 2 deletions core/commands/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package commands

import (
"context"
"errors"
"fmt"
"io"
"net/http"
"sort"

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

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

// Enforce URL-safe encoding is used for data passed via URL arguments
Expand Down
2 changes: 1 addition & 1 deletion core/node/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package node

import (
"context"
"errors"

"github.com/jbenet/goprocess"
"github.com/pkg/errors"
"go.uber.org/fx"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ require (
github.com/multiformats/go-multihash v0.2.3
github.com/opentracing/opentracing-go v1.2.0
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.19.1
github.com/stretchr/testify v1.9.0
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
Expand Down Expand Up @@ -197,6 +196,7 @@ require (
github.com/pion/transport/v2 v2.2.4 // indirect
github.com/pion/turn/v2 v2.1.4 // indirect
github.com/pion/webrtc/v3 v3.2.23 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/polydawn/refmt v0.89.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
Expand Down

0 comments on commit 75df4e8

Please sign in to comment.