Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion file/unixfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"

ft "github.com/bittorrent/go-unixfs"
uio "github.com/bittorrent/go-unixfs/io"
"github.com/bittorrent/go-unixfs/util"
Expand All @@ -13,8 +14,8 @@ import (
files "github.com/bittorrent/go-btfs-files"
cid "github.com/ipfs/go-cid"

dag "github.com/ipfs/boxo/ipld/merkledag"
ipld "github.com/ipfs/go-ipld-format"
dag "github.com/ipfs/go-merkledag"
)

// Number to file to prefetch in directories
Expand Down
2 changes: 1 addition & 1 deletion hamt/hamt.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import (
format "github.com/bittorrent/go-unixfs"
"github.com/bittorrent/go-unixfs/internal"

dag "github.com/ipfs/boxo/ipld/merkledag"
bitfield "github.com/ipfs/go-bitfield"
cid "github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
dag "github.com/ipfs/go-merkledag"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion importer/balanced/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ import (
"context"
"errors"
"fmt"

ft "github.com/bittorrent/go-unixfs"
h "github.com/bittorrent/go-unixfs/importer/helpers"
pb "github.com/bittorrent/go-unixfs/pb"
dag "github.com/ipfs/boxo/ipld/merkledag"
"github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
dag "github.com/ipfs/go-merkledag"
)

// Layout builds a balanced DAG layout. In a balanced DAG of depth 1, leaf nodes
Expand Down
2 changes: 1 addition & 1 deletion importer/helpers/dagbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"sync"

dag "github.com/ipfs/go-merkledag"
dag "github.com/ipfs/boxo/ipld/merkledag"

ft "github.com/bittorrent/go-unixfs"
pb "github.com/bittorrent/go-unixfs/pb"
Expand Down
3 changes: 2 additions & 1 deletion importer/trickle/trickledag.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import (
"context"
"errors"
"fmt"

ft "github.com/bittorrent/go-unixfs"
h "github.com/bittorrent/go-unixfs/importer/helpers"
pb "github.com/bittorrent/go-unixfs/pb"
dag "github.com/ipfs/boxo/ipld/merkledag"
cid "github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
dag "github.com/ipfs/go-merkledag"
)

// depthRepeat specifies how many times to append a child tree of a
Expand Down
2 changes: 1 addition & 1 deletion io/dagreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"io"

"github.com/bittorrent/go-unixfs"
mdag "github.com/ipfs/boxo/ipld/merkledag"
ipld "github.com/ipfs/go-ipld-format"
mdag "github.com/ipfs/go-merkledag"
)

// Common errors
Expand Down
2 changes: 1 addition & 1 deletion io/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/alecthomas/units"
ipld "github.com/ipfs/go-ipld-format"
logging "github.com/ipfs/go-log"
mdag "github.com/ipfs/go-merkledag"
mdag "github.com/ipfs/boxo/ipld/merkledag"

format "github.com/bittorrent/go-unixfs"
hamt "github.com/bittorrent/go-unixfs/hamt"
Expand Down
2 changes: 1 addition & 1 deletion io/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

ft "github.com/bittorrent/go-unixfs"
hamt "github.com/bittorrent/go-unixfs/hamt"
dag "github.com/ipfs/go-merkledag"
dag "github.com/ipfs/boxo/ipld/merkledag"

ipld "github.com/ipfs/go-ipld-format"
)
Expand Down
14 changes: 10 additions & 4 deletions mod/dagmodifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
util "github.com/bittorrent/go-unixfs/util"

chunker "github.com/bittorrent/go-btfs-chunker"
mdag "github.com/ipfs/boxo/ipld/merkledag"
cid "github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
mdag "github.com/ipfs/go-merkledag"
)

// Common errors
Expand Down Expand Up @@ -669,11 +669,17 @@ func (mdm *MetaDagModifier) GetDb() *help.DagBuilderHelper {
//
// There are three scenarios possible:
// Scenario #1. No existing metadata for the `root`. So this scenario is
// to create a new metadata sub-DAG.
//
// to create a new metadata sub-DAG.
//
// Scenario #2. There are existing keys for the given `metadata` items.
// Then this is to update the metadata sub-DAG with the given items.
//
// Then this is to update the metadata sub-DAG with the given items.
//
// Scenario #3. There are no pre-existing metadata items for the given `metadata` items.
// Then this scenario is to append given items to the metadata sub-DAG.
//
// Then this scenario is to append given items to the metadata sub-DAG.
//
// TODO: trickle format
// Preconditions include that first the given `metadata` is in compact JSON format.
// Note that the given `metadata` should be added to the first element of the metadata list.
Expand Down
2 changes: 1 addition & 1 deletion unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"

proto "github.com/gogo/protobuf/proto"
dag "github.com/ipfs/go-merkledag"
dag "github.com/ipfs/boxo/ipld/merkledag"

pb "github.com/bittorrent/go-unixfs/pb"
ipld "github.com/ipfs/go-ipld-format"
Expand Down
2 changes: 1 addition & 1 deletion util/metautils.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
uio "github.com/bittorrent/go-unixfs/io"

ipld "github.com/ipfs/go-ipld-format"
mdag "github.com/ipfs/go-merkledag"
mdag "github.com/ipfs/boxo/ipld/merkledag"
)

// checkAndSplitMetadata returns both data root node and metadata root node if exists from
Expand Down