Skip to content

Commit

Permalink
IPLD In IPFS: Target Merge Branch (#67)
Browse files Browse the repository at this point in the history
* update go-path and error message
* add node api for prime interactions
* use go-unixfsnode
* update against fetcher

Co-authored-by: acruikshank <acruikshank@example.com>

This commit was moved from ipfs/interface-go-ipfs-core@49cdff8
  • Loading branch information
hannahhoward committed Aug 12, 2021
1 parent ffb4966 commit 8f0db8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions coreiface/coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package iface

import (
"context"

path "github.com/ipfs/interface-go-ipfs-core/path"

"github.com/ipfs/interface-go-ipfs-core/options"
Expand Down
7 changes: 5 additions & 2 deletions coreiface/tests/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ package tests

import (
"context"
"github.com/ipfs/interface-go-ipfs-core/path"
"errors"
"math"
"strings"
"testing"

"github.com/ipfs/go-path/resolver"
"github.com/ipfs/interface-go-ipfs-core/path"

"github.com/ipfs/interface-go-ipfs-core/options"

ipldcbor "github.com/ipfs/go-ipld-cbor"
Expand Down Expand Up @@ -138,7 +141,7 @@ func (tp *TestSuite) TestInvalidPathRemainder(t *testing.T) {
}

_, err = api.ResolvePath(ctx, path.New("/ipld/"+nd.Cid().String()+"/bar/baz"))
if err == nil || !strings.Contains(err.Error(), "no such link found") {
if err == nil || !errors.As(err, &resolver.ErrNoLink{}) {
t.Fatalf("unexpected error: %s", err)
}
}
Expand Down

0 comments on commit 8f0db8f

Please sign in to comment.