diff --git a/pkg/dynamicaccess/accesslogic.go b/pkg/dynamicaccess/accesslogic.go index 593e02d630c..a2a6fbdce24 100644 --- a/pkg/dynamicaccess/accesslogic.go +++ b/pkg/dynamicaccess/accesslogic.go @@ -3,9 +3,9 @@ package dynamicaccess import ( "crypto/ecdsa" - encryption "github.com/ethersphere/bee/pkg/encryption" - "github.com/ethersphere/bee/pkg/kvs" - "github.com/ethersphere/bee/pkg/swarm" + encryption "github.com/ethersphere/bee/v2/pkg/encryption" + "github.com/ethersphere/bee/v2/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/swarm" "golang.org/x/crypto/sha3" ) diff --git a/pkg/dynamicaccess/accesslogic_test.go b/pkg/dynamicaccess/accesslogic_test.go index 8c2f2a6489f..be115f424d1 100644 --- a/pkg/dynamicaccess/accesslogic_test.go +++ b/pkg/dynamicaccess/accesslogic_test.go @@ -7,10 +7,10 @@ import ( "encoding/hex" "testing" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/dynamicaccess" - kvsmock "github.com/ethersphere/bee/pkg/kvs/mock" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + kvsmock "github.com/ethersphere/bee/v2/pkg/kvs/mock" + "github.com/ethersphere/bee/v2/pkg/swarm" ) // Generates a new test environment with a fix private key diff --git a/pkg/dynamicaccess/controller.go b/pkg/dynamicaccess/controller.go index df39fa23c32..ccdc8c2d7f4 100644 --- a/pkg/dynamicaccess/controller.go +++ b/pkg/dynamicaccess/controller.go @@ -3,8 +3,8 @@ package dynamicaccess import ( "crypto/ecdsa" - kvsmock "github.com/ethersphere/bee/pkg/kvs/mock" - "github.com/ethersphere/bee/pkg/swarm" + kvsmock "github.com/ethersphere/bee/v2/pkg/kvs/mock" + "github.com/ethersphere/bee/v2/pkg/swarm" ) type Controller interface { diff --git a/pkg/dynamicaccess/controller_test.go b/pkg/dynamicaccess/controller_test.go index 24107123ab5..efbfc8d4e42 100644 --- a/pkg/dynamicaccess/controller_test.go +++ b/pkg/dynamicaccess/controller_test.go @@ -8,12 +8,12 @@ import ( "testing" "time" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/dynamicaccess" - "github.com/ethersphere/bee/pkg/dynamicaccess/mock" - "github.com/ethersphere/bee/pkg/encryption" - kvsmock "github.com/ethersphere/bee/pkg/kvs/mock" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess/mock" + "github.com/ethersphere/bee/v2/pkg/encryption" + kvsmock "github.com/ethersphere/bee/v2/pkg/kvs/mock" + "github.com/ethersphere/bee/v2/pkg/swarm" "golang.org/x/crypto/sha3" ) diff --git a/pkg/dynamicaccess/grantee.go b/pkg/dynamicaccess/grantee.go index afbe5349818..d850fc047cc 100644 --- a/pkg/dynamicaccess/grantee.go +++ b/pkg/dynamicaccess/grantee.go @@ -6,9 +6,9 @@ import ( "crypto/elliptic" "fmt" - "github.com/ethersphere/bee/pkg/file" - "github.com/ethersphere/bee/pkg/storer" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/file" + "github.com/ethersphere/bee/v2/pkg/storer" + "github.com/ethersphere/bee/v2/pkg/swarm" ) const ( diff --git a/pkg/dynamicaccess/grantee_manager.go b/pkg/dynamicaccess/grantee_manager.go index eaa9cc9ffd9..1fac35a38bd 100644 --- a/pkg/dynamicaccess/grantee_manager.go +++ b/pkg/dynamicaccess/grantee_manager.go @@ -3,9 +3,9 @@ package dynamicaccess import ( "crypto/ecdsa" - "github.com/ethersphere/bee/pkg/dynamicaccess/mock" - "github.com/ethersphere/bee/pkg/kvs" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess/mock" + "github.com/ethersphere/bee/v2/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/swarm" ) type GranteeManager interface { diff --git a/pkg/dynamicaccess/grantee_manager_test.go b/pkg/dynamicaccess/grantee_manager_test.go index d458e007088..bb01c13cd85 100644 --- a/pkg/dynamicaccess/grantee_manager_test.go +++ b/pkg/dynamicaccess/grantee_manager_test.go @@ -7,8 +7,8 @@ import ( "fmt" "testing" - "github.com/ethersphere/bee/pkg/dynamicaccess" - kvsmock "github.com/ethersphere/bee/pkg/kvs/mock" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + kvsmock "github.com/ethersphere/bee/v2/pkg/kvs/mock" ) func setupAccessLogic(privateKey *ecdsa.PrivateKey) dynamicaccess.ActLogic { diff --git a/pkg/dynamicaccess/grantee_test.go b/pkg/dynamicaccess/grantee_test.go index 5b7a9bc5402..b644f5896c5 100644 --- a/pkg/dynamicaccess/grantee_test.go +++ b/pkg/dynamicaccess/grantee_test.go @@ -7,15 +7,15 @@ import ( "crypto/rand" "testing" - "github.com/ethersphere/bee/pkg/dynamicaccess" - "github.com/ethersphere/bee/pkg/file" - "github.com/ethersphere/bee/pkg/file/loadsave" - "github.com/ethersphere/bee/pkg/file/pipeline" - "github.com/ethersphere/bee/pkg/file/pipeline/builder" - "github.com/ethersphere/bee/pkg/file/redundancy" - "github.com/ethersphere/bee/pkg/storage" - mockstorer "github.com/ethersphere/bee/pkg/storer/mock" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + "github.com/ethersphere/bee/v2/pkg/file" + "github.com/ethersphere/bee/v2/pkg/file/loadsave" + "github.com/ethersphere/bee/v2/pkg/file/pipeline" + "github.com/ethersphere/bee/v2/pkg/file/pipeline/builder" + "github.com/ethersphere/bee/v2/pkg/file/redundancy" + "github.com/ethersphere/bee/v2/pkg/storage" + mockstorer "github.com/ethersphere/bee/v2/pkg/storer/mock" + "github.com/ethersphere/bee/v2/pkg/swarm" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dynamicaccess/history.go b/pkg/dynamicaccess/history.go index 63ec00847a6..82d18f5ef8a 100644 --- a/pkg/dynamicaccess/history.go +++ b/pkg/dynamicaccess/history.go @@ -2,7 +2,7 @@ package dynamicaccess import ( "github.com/ethereum/go-ethereum/common" - "github.com/ethersphere/bee/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/kvs" ) type History interface { diff --git a/pkg/dynamicaccess/history_test.go b/pkg/dynamicaccess/history_test.go index c2164df7d39..6c0a48a4fd6 100644 --- a/pkg/dynamicaccess/history_test.go +++ b/pkg/dynamicaccess/history_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/ethersphere/bee/pkg/dynamicaccess" - "github.com/ethersphere/bee/pkg/dynamicaccess/mock" - kvsmock "github.com/ethersphere/bee/pkg/kvs/mock" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess/mock" + kvsmock "github.com/ethersphere/bee/v2/pkg/kvs/mock" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dynamicaccess/mock/grantee.go b/pkg/dynamicaccess/mock/grantee.go index f4bd90740ab..50689ade08f 100644 --- a/pkg/dynamicaccess/mock/grantee.go +++ b/pkg/dynamicaccess/mock/grantee.go @@ -3,7 +3,7 @@ package mock import ( "crypto/ecdsa" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/swarm" ) type GranteeListMock interface { diff --git a/pkg/dynamicaccess/mock/history.go b/pkg/dynamicaccess/mock/history.go index 91b544a0760..e7747434d59 100644 --- a/pkg/dynamicaccess/mock/history.go +++ b/pkg/dynamicaccess/mock/history.go @@ -5,11 +5,11 @@ import ( "sort" "time" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/feeds" - "github.com/ethersphere/bee/pkg/kvs" - "github.com/ethersphere/bee/pkg/storage" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/feeds" + "github.com/ethersphere/bee/v2/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/storage" + "github.com/ethersphere/bee/v2/pkg/swarm" ) type historyMock struct { diff --git a/pkg/dynamicaccess/mock/session.go b/pkg/dynamicaccess/mock/session.go index ba3e3f8c8f2..9613aacedfa 100644 --- a/pkg/dynamicaccess/mock/session.go +++ b/pkg/dynamicaccess/mock/session.go @@ -3,8 +3,8 @@ package mock import ( "crypto/ecdsa" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/keystore" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/keystore" ) type SessionMock struct { diff --git a/pkg/dynamicaccess/session.go b/pkg/dynamicaccess/session.go index b2718aedd67..0b58c1aa3dd 100644 --- a/pkg/dynamicaccess/session.go +++ b/pkg/dynamicaccess/session.go @@ -4,8 +4,8 @@ import ( "crypto/ecdsa" "errors" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/keystore" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/keystore" ) // Session represents an interface for a Diffie-Helmann key derivation diff --git a/pkg/dynamicaccess/session_test.go b/pkg/dynamicaccess/session_test.go index 501d1abd2b6..493b998a805 100644 --- a/pkg/dynamicaccess/session_test.go +++ b/pkg/dynamicaccess/session_test.go @@ -8,10 +8,10 @@ import ( "io" "testing" - "github.com/ethersphere/bee/pkg/crypto" - "github.com/ethersphere/bee/pkg/dynamicaccess" - "github.com/ethersphere/bee/pkg/dynamicaccess/mock" - memkeystore "github.com/ethersphere/bee/pkg/keystore/mem" + "github.com/ethersphere/bee/v2/pkg/crypto" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess" + "github.com/ethersphere/bee/v2/pkg/dynamicaccess/mock" + memkeystore "github.com/ethersphere/bee/v2/pkg/keystore/mem" ) func mockKeyFunc(publicKey *ecdsa.PublicKey, nonces [][]byte) ([][]byte, error) { diff --git a/pkg/kvs/kvs.go b/pkg/kvs/kvs.go index 1106f2ceee8..fcb5fc668bb 100644 --- a/pkg/kvs/kvs.go +++ b/pkg/kvs/kvs.go @@ -9,10 +9,10 @@ import ( "encoding/hex" "errors" - "github.com/ethersphere/bee/pkg/file" - "github.com/ethersphere/bee/pkg/manifest" - "github.com/ethersphere/bee/pkg/storer" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/file" + "github.com/ethersphere/bee/v2/pkg/manifest" + "github.com/ethersphere/bee/v2/pkg/storer" + "github.com/ethersphere/bee/v2/pkg/swarm" ) type KeyValueStore interface { diff --git a/pkg/kvs/kvs_test.go b/pkg/kvs/kvs_test.go index 309250dacff..9edfe48062c 100644 --- a/pkg/kvs/kvs_test.go +++ b/pkg/kvs/kvs_test.go @@ -8,15 +8,15 @@ import ( "context" "testing" - "github.com/ethersphere/bee/pkg/file" - "github.com/ethersphere/bee/pkg/file/loadsave" - "github.com/ethersphere/bee/pkg/file/pipeline" - "github.com/ethersphere/bee/pkg/file/pipeline/builder" - "github.com/ethersphere/bee/pkg/file/redundancy" - "github.com/ethersphere/bee/pkg/kvs" - "github.com/ethersphere/bee/pkg/storage" - mockstorer "github.com/ethersphere/bee/pkg/storer/mock" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/file" + "github.com/ethersphere/bee/v2/pkg/file/loadsave" + "github.com/ethersphere/bee/v2/pkg/file/pipeline" + "github.com/ethersphere/bee/v2/pkg/file/pipeline/builder" + "github.com/ethersphere/bee/v2/pkg/file/redundancy" + "github.com/ethersphere/bee/v2/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/storage" + mockstorer "github.com/ethersphere/bee/v2/pkg/storer/mock" + "github.com/ethersphere/bee/v2/pkg/swarm" "github.com/stretchr/testify/assert" ) diff --git a/pkg/kvs/mock/kvs.go b/pkg/kvs/mock/kvs.go index fc091a88417..78282934bf2 100644 --- a/pkg/kvs/mock/kvs.go +++ b/pkg/kvs/mock/kvs.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "sync" - "github.com/ethersphere/bee/pkg/kvs" - "github.com/ethersphere/bee/pkg/swarm" + "github.com/ethersphere/bee/v2/pkg/kvs" + "github.com/ethersphere/bee/v2/pkg/swarm" ) var lock = &sync.Mutex{}