From 8e177585a92ef2da93a97a07ef132f0c4c10c260 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 28 Sep 2020 13:47:29 -0700 Subject: [PATCH] update to v3 This patch set introduces a breaking change to the format (fixes a bug). --- amt.go | 2 +- amt_test.go | 2 +- gen/gen.go | 2 +- go.mod | 2 +- link.go | 2 +- node.go | 2 +- util.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/amt.go b/amt.go index 34b503e..b8bb9b1 100644 --- a/amt.go +++ b/amt.go @@ -11,7 +11,7 @@ import ( logging "github.com/ipfs/go-log" cbg "github.com/whyrusleeping/cbor-gen" - "github.com/filecoin-project/go-amt-ipld/v2/internal" + "github.com/filecoin-project/go-amt-ipld/v3/internal" ) var log = logging.Logger("amt") diff --git a/amt_test.go b/amt_test.go index 468ce15..d486a64 100644 --- a/amt_test.go +++ b/amt_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/filecoin-project/go-amt-ipld/v2/internal" + "github.com/filecoin-project/go-amt-ipld/v3/internal" block "github.com/ipfs/go-block-format" cid "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" diff --git a/gen/gen.go b/gen/gen.go index 82ddfaa..d374003 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -3,7 +3,7 @@ package main import ( cbg "github.com/whyrusleeping/cbor-gen" - "github.com/filecoin-project/go-amt-ipld/v2/internal" + "github.com/filecoin-project/go-amt-ipld/v3/internal" ) func main() { diff --git a/go.mod b/go.mod index 76c2351..2e162ab 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/filecoin-project/go-amt-ipld/v2 +module github.com/filecoin-project/go-amt-ipld/v3 go 1.12 diff --git a/link.go b/link.go index 5d11ac5..fb08f2b 100644 --- a/link.go +++ b/link.go @@ -3,7 +3,7 @@ package amt import ( "context" - "github.com/filecoin-project/go-amt-ipld/v2/internal" + "github.com/filecoin-project/go-amt-ipld/v3/internal" cid "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" ) diff --git a/node.go b/node.go index 1e0feb8..4ec95f7 100644 --- a/node.go +++ b/node.go @@ -6,7 +6,7 @@ import ( "errors" "fmt" - "github.com/filecoin-project/go-amt-ipld/v2/internal" + "github.com/filecoin-project/go-amt-ipld/v3/internal" "github.com/ipfs/go-cid" cbor "github.com/ipfs/go-ipld-cbor" cbg "github.com/whyrusleeping/cbor-gen" diff --git a/util.go b/util.go index b381008..0eded5b 100644 --- a/util.go +++ b/util.go @@ -1,6 +1,6 @@ package amt -import "github.com/filecoin-project/go-amt-ipld/v2/internal" +import "github.com/filecoin-project/go-amt-ipld/v3/internal" func nodesForHeight(height int) uint64 { heightLogTwo := uint64(internal.WidthBits * height)