Skip to content

Commit

Permalink
chore(deps): bring in line with latest kubo, boxo, libp2p
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan authored Sep 26, 2023
1 parent 6a5810a commit 7d143ca
Show file tree
Hide file tree
Showing 8 changed files with 656 additions and 1,905 deletions.
202 changes: 94 additions & 108 deletions go.mod

Large diffs are not rendered by default.

1,074 changes: 210 additions & 864 deletions go.sum

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package main
import (
"context"

ipfshttp "github.com/ipfs/go-ipfs-http-client"
iface "github.com/ipfs/interface-go-ipfs-core"
iface "github.com/ipfs/boxo/coreiface"
ipfshttp "github.com/ipfs/kubo/client/rpc"
)

func http(ctx context.Context) (iface.CoreAPI, error) {
httpApi, err := ipfshttp.NewLocalApi()
httpAPI, err := ipfshttp.NewLocalApi()
if err != nil {
return nil, err
}
err = httpApi.Request("version").Exec(ctx, nil)
err = httpAPI.Request("version").Exec(ctx, nil)
if err != nil {
return nil, err
}
return httpApi, nil
return httpAPI, nil
}
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"syscall"

"github.com/cheggaaa/pb/v3"
files "github.com/ipfs/go-libipfs/files"
iface "github.com/ipfs/interface-go-ipfs-core"
ipath "github.com/ipfs/interface-go-ipfs-core/path"
iface "github.com/ipfs/boxo/coreiface"
ipath "github.com/ipfs/boxo/coreiface/path"
files "github.com/ipfs/boxo/files"
cli "github.com/urfave/cli/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"path/filepath"

iface "github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
iface "github.com/ipfs/boxo/coreiface"
"github.com/ipfs/boxo/coreiface/options"
config "github.com/ipfs/kubo/config"
"github.com/ipfs/kubo/core"
"github.com/ipfs/kubo/core/coreapi"
Expand Down
224 changes: 106 additions & 118 deletions sharness/dependencies/go.mod

Large diffs are not rendered by default.

1,039 changes: 235 additions & 804 deletions sharness/dependencies/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"sync"

iface "github.com/ipfs/interface-go-ipfs-core"
iface "github.com/ipfs/boxo/coreiface"
peer "github.com/libp2p/go-libp2p/core/peer"
ma "github.com/multiformats/go-multiaddr"
)
Expand Down

0 comments on commit 7d143ca

Please sign in to comment.