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 authored Aug 12, 2021
1 parent 1af8a12 commit 72af89d
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 72af89d

Please sign in to comment.