diff --git a/go.mod b/go.mod index 332838d370bbc5dcf2ffc13f6de68ca585d21b26..a0083b344893e6fce79b0e7c813f47dc1d3e87f1 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,7 @@ module gitlab.dms3.io/mf/go-multiaddr go 1.15 require ( - github.com/ipfs/go-cid v0.0.7 github.com/multiformats/go-multihash v0.0.14 github.com/multiformats/go-varint v0.0.6 - gitlab.dms3.io/dms3/public/go-cid v0.0.2 + gitlab.dms3.io/dms3/go-cid v0.0.3 ) diff --git a/go.sum b/go.sum index e00083d477865c8f72f34cda55a7c47a5d036ac0..36ae8536b4dd8851e8b731a43537544f08d5f968 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/ipfs/go-cid v0.0.7 h1:ysQJVJA3fNDF1qigJbsSQOdjhVLsOEoPdh0+R97k3jY= -github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 h1:lYpkrQH5ajf0OXOcUbGjvZxxijuBwbbmlSxLiuofa+g= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771 h1:MHkK1uRtFbVqvAgvWxafZe54+5uBxLluGylDiKgdhwo= @@ -13,7 +11,6 @@ github.com/multiformats/go-base36 v0.1.0 h1:JR6TyF7JjGd3m6FbLU2cOxhC0Li8z8dLNGQ8 github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= github.com/multiformats/go-multibase v0.0.3 h1:l/B6bJDQjvQ5G52jw4QGSYeOTZoAwIO77RblWplfIqk= github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= -github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= github.com/multiformats/go-multihash v0.0.14 h1:QoBceQYQQtNUuf6s7wHxnE2c8bhbMqhfGzNI032se/I= github.com/multiformats/go-multihash v0.0.14/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= github.com/multiformats/go-varint v0.0.5/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= @@ -21,8 +18,8 @@ github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2 github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -gitlab.dms3.io/dms3/public/go-cid v0.0.2 h1:DLI843W/j0Khbx2gLo1B+8YZPGybMeK5k6R8cSOxvr0= -gitlab.dms3.io/dms3/public/go-cid v0.0.2/go.mod h1:GQw3gc4CSrFY+aX6M+OBQDlg0p5/eQJoRrayaZzkAOQ= +gitlab.dms3.io/dms3/go-cid v0.0.3 h1:5qZ1sl1Bi26naLz7Vsc8fjWcJKX8bR6njt3WPCteXac= +gitlab.dms3.io/dms3/go-cid v0.0.3/go.mod h1:qT/Q1NZD31UnWQ+rwsQgzGrrsQhpq7dYSlXf7ulDgtk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8 h1:1wopBVtVdWnn03fZelqdXTqk7U7zPQCb+T4rbU9ZEoU= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= diff --git a/multiaddr_test.go b/multiaddr_test.go index f617ff98207084af7b3dba478afaeb711bddf2d7..557c0577794788d00941596a08cd25ebc4a4c495 100644 --- a/multiaddr_test.go +++ b/multiaddr_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/ipfs/go-cid" mh "github.com/multiformats/go-multihash" + "gitlab.dms3.io/dms3/go-cid" ) func newMultiaddr(t *testing.T, a string) Multiaddr { @@ -593,7 +593,7 @@ func TestInvalidP2PAddrString(t *testing.T) { badStringAddrs := []string{ "/p2p/k2k4r8oqamigqdo6o7hsbfwd45y70oyynp98usk7zmyfrzpqxh1pohl-", // invalid multibase encoding "/p2p/?unknownmultibase", // invalid multibase encoding - "/p2p/k2jmtxwoe2phm1hbqp0e7nufqf6umvuu2e9qd7ana7h411a0haqj6i2z", // non-libp2p-key codec + "/p2p/k2jmtxwoe2phm1hbqp0e7nufqf6umvuu2e9qd7ana7h411a0haqj6i2z", // non-p2p-key codec "/p2p/" + unknownCodecCID, // impossible codec } for _, a := range badStringAddrs { diff --git a/transcoders.go b/transcoders.go index ad4b14f0a6800049e320eaefe6c18237dd28d64a..2124f7b8518e0e28d361db6cb411c894c015d2e2 100644 --- a/transcoders.go +++ b/transcoders.go @@ -11,7 +11,7 @@ import ( "strings" mh "github.com/multiformats/go-multihash" - "gitlab.dms3.io/dms3/public/go-cid" + "gitlab.dms3.io/dms3/go-cid" ) type Transcoder interface {