From dbae377351ae31c1632e9b7aeb1ac0ac21e39ff1 Mon Sep 17 00:00:00 2001 From: Mikhail Iudin Date: Tue, 23 May 2023 14:47:24 +0200 Subject: [PATCH] fix imports --- .github/dependabot.yml | 2 +- .github/workflows/coverage.yml | 2 +- Makefile | 6 +-- accountservice/accountservice.go | 6 +-- accountservice/mock_accountservice/helper.go | 4 +- .../mock_accountservice.go | 6 +-- app/app.go | 4 +- app/ldiff/diff.go | 2 +- app/ldiff/mock_ldiff/mock_ldiff.go | 4 +- app/logger/config.go | 2 +- app/ocache/ocache.go | 2 +- commonfile/fileblockstore/fileblockstore.go | 4 +- .../fileproto/fileprotoerr/fileprotoerr.go | 4 +- commonfile/fileservice/blockservice.go | 2 +- commonfile/fileservice/fileservice.go | 6 +-- commonspace/commongetter.go | 6 +-- commonspace/commonstorage.go | 4 +- .../credentialprovider/credentialprovider.go | 4 +- .../mock_credentialprovider.go | 4 +- commonspace/deletion_test.go | 18 ++++---- commonspace/headsync/diffsyncer.go | 24 +++++----- commonspace/headsync/diffsyncer_test.go | 32 ++++++------- commonspace/headsync/headsync.go | 26 +++++------ commonspace/headsync/headsync_test.go | 16 +++---- .../headsync/mock_headsync/mock_headsync.go | 4 +- commonspace/headsync/remotediff.go | 4 +- commonspace/headsync/remotediff_test.go | 4 +- commonspace/object/accountdata/accountdata.go | 2 +- .../object/acl/list/aclrecordbuilder.go | 6 +-- commonspace/object/acl/list/aclstate.go | 6 +-- .../object/acl/list/aclstatebuilder.go | 4 +- commonspace/object/acl/list/list.go | 10 ++-- commonspace/object/acl/list/list_test.go | 2 +- commonspace/object/acl/list/listutils.go | 8 ++-- .../object/acl/list/mock_list/mock_list.go | 8 ++-- commonspace/object/acl/list/models.go | 4 +- .../object/acl/liststorage/inmemory.go | 2 +- .../object/acl/liststorage/liststorage.go | 4 +- .../mock_liststorage/mock_liststorage.go | 4 +- commonspace/object/acl/syncacl/syncacl.go | 6 +-- .../object/acl/syncacl/syncaclhandler.go | 6 +-- .../syncobjectgetter/syncobjectgetter.go | 2 +- .../object/tree/exporter/treeexporter.go | 10 ++-- .../object/tree/exporter/treeimport.go | 8 ++-- commonspace/object/tree/objecttree/change.go | 4 +- .../object/tree/objecttree/changebuilder.go | 6 +-- .../mock_objecttree/mock_objecttree.go | 10 ++-- .../object/tree/objecttree/objecttree.go | 14 +++--- .../object/tree/objecttree/objecttree_test.go | 8 ++-- .../tree/objecttree/objecttreefactory.go | 8 ++-- .../tree/objecttree/objecttreevalidator.go | 8 ++-- .../object/tree/objecttree/rawloader.go | 6 +-- .../object/tree/objecttree/signablecontent.go | 2 +- .../object/tree/objecttree/testutils.go | 6 +-- .../object/tree/objecttree/treebuilder.go | 6 +-- commonspace/object/tree/objecttree/util.go | 2 +- .../synctree/mock_synctree/mock_synctree.go | 14 +++--- .../object/tree/synctree/receivequeue.go | 2 +- .../object/tree/synctree/syncprotocol_test.go | 12 ++--- commonspace/object/tree/synctree/synctree.go | 24 +++++----- .../object/tree/synctree/synctree_test.go | 18 ++++---- .../object/tree/synctree/synctreehandler.go | 14 +++--- .../tree/synctree/synctreehandler_test.go | 14 +++--- .../object/tree/synctree/treeremotegetter.go | 12 ++--- .../mock_updatelistener.go | 4 +- .../synctree/updatelistener/updatelistener.go | 4 +- .../object/tree/synctree/utils_test.go | 18 ++++---- .../object/tree/treechangeproto/errors.go | 2 +- .../object/tree/treechangeproto/treechange.go | 2 +- .../object/tree/treestorage/inmemory.go | 4 +- .../mock_treestorage/mock_treestorage.go | 4 +- .../object/tree/treestorage/treestorage.go | 4 +- .../mock_treemanager/mock_treemanager.go | 6 +-- commonspace/object/treemanager/treemanager.go | 6 +-- .../mock_objectsync/mock_objectsync.go | 10 ++-- commonspace/objectsync/msgpool.go | 6 +-- commonspace/objectsync/objectsync.go | 18 ++++---- commonspace/objectsync/requestfactory.go | 6 +-- commonspace/objectsync/syncclient.go | 4 +- .../objectsync/synchandler/synchhandler.go | 2 +- commonspace/payloads.go | 16 +++---- commonspace/payloads_test.go | 16 +++---- .../mock_peermanager/mock_peermanager.go | 6 +-- commonspace/peermanager/peermanager.go | 8 ++-- commonspace/settings/deleter.go | 8 ++-- commonspace/settings/deleter_test.go | 8 ++-- commonspace/settings/deletionmanager.go | 4 +- commonspace/settings/deletionmanager_test.go | 8 ++-- .../settings/mock_settings/mock_settings.go | 4 +- commonspace/settings/settings.go | 26 +++++------ commonspace/settings/settings_test.go | 26 +++++------ .../settings/settingsstate/changefactory.go | 2 +- .../settingsstate/changefactory_test.go | 2 +- .../settings/settingsstate/deletionstate.go | 6 +-- .../settingsstate/deletionstate_test.go | 6 +-- .../mock_settingsstate/mock_settingsstate.go | 6 +-- .../settings/settingsstate/settingsstate.go | 2 +- .../settings/settingsstate/statebuilder.go | 4 +- .../settingsstate/statebuilder_test.go | 6 +-- commonspace/space.go | 46 +++++++++---------- commonspace/spaceservice.go | 38 +++++++-------- commonspace/spacestorage/inmemoryprovider.go | 2 +- commonspace/spacestorage/inmemorystorage.go | 10 ++-- .../mock_spacestorage/mock_spacestorage.go | 10 ++-- commonspace/spacestorage/spacestorage.go | 14 +++--- commonspace/spacesyncproto/errors.go | 2 +- .../mock_spacesyncproto.go | 4 +- commonspace/spacesyncproto/spacesync.go | 2 +- commonspace/spaceutils_test.go | 28 +++++------ commonspace/syncstatus/syncstatus.go | 12 ++--- .../coordinatorclient/coordinatorclient.go | 16 +++---- .../mock_coordinatorclient.go | 10 ++-- coordinator/coordinatorproto/errors.go | 2 +- coordinator/coordinatorproto/receipt.go | 4 +- coordinator/coordinatorproto/receipt_test.go | 2 +- coordinator/nodeconfsource/nodeconfsource.go | 8 ++-- go.mod | 8 ++-- go.sum | 12 ++--- metric/log.go | 2 +- metric/log_test.go | 2 +- metric/metric.go | 4 +- metric/version.go | 2 +- net/dialer/dialer.go | 16 +++---- net/peer/context.go | 2 +- net/peer/peer.go | 2 +- net/pool/pool.go | 10 ++-- net/pool/pool_test.go | 10 ++-- net/pool/poolservice.go | 10 ++-- net/rpc/rpctest/pool.go | 6 +-- net/rpc/rpctest/server.go | 4 +- net/rpc/server/baseserver.go | 4 +- net/rpc/server/drpcserver.go | 10 ++-- net/secureservice/credential.go | 8 ++-- net/secureservice/credential_test.go | 6 +-- net/secureservice/handshake/handshake.go | 2 +- net/secureservice/handshake/handshake_test.go | 4 +- net/secureservice/secureservice.go | 14 +++--- net/secureservice/secureservice_test.go | 14 +++--- net/streampool/context.go | 2 +- net/streampool/encoding_test.go | 2 +- net/streampool/stream.go | 4 +- net/streampool/streampool.go | 6 +-- net/streampool/streampool_test.go | 6 +-- net/streampool/streampoolservice.go | 6 +-- net/timeoutconn/conn.go | 2 +- nodeconf/mock_nodeconf/mock_nodeconf.go | 8 ++-- nodeconf/nodeconf.go | 2 +- nodeconf/nodeconf_test.go | 2 +- nodeconf/nodeconfstore/nodeconfstore.go | 4 +- nodeconf/nodeconfstore/nodeconfstore_test.go | 4 +- nodeconf/service.go | 16 +++---- nodeconf/service_test.go | 8 ++-- testutil/accounttest/accountservice.go | 8 ++-- testutil/testnodeconf/testnodeconf.go | 8 ++-- util/crypto/decode.go | 2 +- util/crypto/derived.go | 2 +- util/crypto/ed25519.go | 4 +- util/crypto/mnemonic.go | 2 +- util/crypto/mnemonic_test.go | 2 +- .../mock_periodicsync/mock_periodicsync.go | 2 +- util/periodicsync/periodicsync.go | 4 +- util/periodicsync/periodicsync_test.go | 2 +- util/strkey/strkey.go | 2 +- 163 files changed, 610 insertions(+), 610 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 75ad3e3a..e0353571 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,5 +10,5 @@ updates: schedule: interval: "weekly" ignore: - - dependency-name: "github.com/anytypeio/go-chash" + - dependency-name: "github.com/anyproto/go-chash" diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1780a7f4..25f36913 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,7 +7,7 @@ jobs: test: runs-on: ubuntu-latest env: - GOPRIVATE: github.com/anytypeio + GOPRIVATE: github.com/anyproto steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 diff --git a/Makefile b/Makefile index 434ab943..aa0fa75f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: proto test deps -export GOPRIVATE=github.com/anytypeio +export GOPRIVATE=github.com/anyproto export PATH:=deps:$(PATH) proto: @@ -8,8 +8,8 @@ proto: @$(eval P_ACL_RECORDS_PATH_PB := commonspace/object/acl/aclrecordproto) @$(eval P_TREE_CHANGES_PATH_PB := commonspace/object/tree/treechangeproto) @$(eval P_CRYPTO_PATH_PB := util/crypto/cryptoproto) - @$(eval P_ACL_RECORDS := M$(P_ACL_RECORDS_PATH_PB)/protos/aclrecord.proto=github.com/anytypeio/any-sync/$(P_ACL_RECORDS_PATH_PB)) - @$(eval P_TREE_CHANGES := M$(P_TREE_CHANGES_PATH_PB)/protos/treechange.proto=github.com/anytypeio/any-sync/$(P_TREE_CHANGES_PATH_PB)) + @$(eval P_ACL_RECORDS := M$(P_ACL_RECORDS_PATH_PB)/protos/aclrecord.proto=github.com/anyproto/any-sync/$(P_ACL_RECORDS_PATH_PB)) + @$(eval P_TREE_CHANGES := M$(P_TREE_CHANGES_PATH_PB)/protos/treechange.proto=github.com/anyproto/any-sync/$(P_TREE_CHANGES_PATH_PB)) protoc --gogofaster_out=:. $(P_ACL_RECORDS_PATH_PB)/protos/*.proto protoc --gogofaster_out=:. $(P_TREE_CHANGES_PATH_PB)/protos/*.proto diff --git a/accountservice/accountservice.go b/accountservice/accountservice.go index c15364f3..a7c27b4d 100644 --- a/accountservice/accountservice.go +++ b/accountservice/accountservice.go @@ -1,9 +1,9 @@ -//go:generate mockgen -destination mock_accountservice/mock_accountservice.go github.com/anytypeio/any-sync/accountservice Service +//go:generate mockgen -destination mock_accountservice/mock_accountservice.go github.com/anyproto/any-sync/accountservice Service package accountservice import ( - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/object/accountdata" ) const CName = "common.accountservice" diff --git a/accountservice/mock_accountservice/helper.go b/accountservice/mock_accountservice/helper.go index 8457b53d..cec6f34b 100644 --- a/accountservice/mock_accountservice/helper.go +++ b/accountservice/mock_accountservice/helper.go @@ -1,8 +1,8 @@ package mock_accountservice import ( - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/commonspace/object/accountdata" "github.com/golang/mock/gomock" ) diff --git a/accountservice/mock_accountservice/mock_accountservice.go b/accountservice/mock_accountservice/mock_accountservice.go index b05c634b..a9bbff7f 100644 --- a/accountservice/mock_accountservice/mock_accountservice.go +++ b/accountservice/mock_accountservice/mock_accountservice.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/accountservice (interfaces: Service) +// Source: github.com/anyproto/any-sync/accountservice (interfaces: Service) // Package mock_accountservice is a generated GoMock package. package mock_accountservice @@ -7,8 +7,8 @@ package mock_accountservice import ( reflect "reflect" - app "github.com/anytypeio/any-sync/app" - accountdata "github.com/anytypeio/any-sync/commonspace/object/accountdata" + app "github.com/anyproto/any-sync/app" + accountdata "github.com/anyproto/any-sync/commonspace/object/accountdata" gomock "github.com/golang/mock/gomock" ) diff --git a/app/app.go b/app/app.go index 80d5b1fe..a290a82b 100644 --- a/app/app.go +++ b/app/app.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "go.uber.org/zap" "os" "runtime" @@ -325,7 +325,7 @@ func (app *App) AnySyncVersion() string { info, ok := debug.ReadBuildInfo() if ok { for _, mod := range info.Deps { - if mod.Path == "github.com/anytypeio/any-sync" { + if mod.Path == "github.com/anyproto/any-sync" { app.anySyncVersion = mod.Version break } diff --git a/app/ldiff/diff.go b/app/ldiff/diff.go index f0a2f197..03f3c567 100644 --- a/app/ldiff/diff.go +++ b/app/ldiff/diff.go @@ -1,7 +1,7 @@ // Package ldiff provides a container of elements with fixed id and changeable content. // Diff can calculate the difference with another diff container (you can make it remote) with minimum hops and traffic. // -//go:generate mockgen -destination mock_ldiff/mock_ldiff.go github.com/anytypeio/any-sync/app/ldiff Diff,Remote +//go:generate mockgen -destination mock_ldiff/mock_ldiff.go github.com/anyproto/any-sync/app/ldiff Diff,Remote package ldiff import ( diff --git a/app/ldiff/mock_ldiff/mock_ldiff.go b/app/ldiff/mock_ldiff/mock_ldiff.go index 5aa89825..20a522b7 100644 --- a/app/ldiff/mock_ldiff/mock_ldiff.go +++ b/app/ldiff/mock_ldiff/mock_ldiff.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/app/ldiff (interfaces: Diff,Remote) +// Source: github.com/anyproto/any-sync/app/ldiff (interfaces: Diff,Remote) // Package mock_ldiff is a generated GoMock package. package mock_ldiff @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - ldiff "github.com/anytypeio/any-sync/app/ldiff" + ldiff "github.com/anyproto/any-sync/app/ldiff" gomock "github.com/golang/mock/gomock" ) diff --git a/app/logger/config.go b/app/logger/config.go index f7b50512..58ae7aff 100644 --- a/app/logger/config.go +++ b/app/logger/config.go @@ -7,7 +7,7 @@ import ( "go.uber.org/zap" "go.uber.org/zap/zapcore" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/util/slice" ) type LogFormat int diff --git a/app/ocache/ocache.go b/app/ocache/ocache.go index 8c9011e1..4f130b89 100644 --- a/app/ocache/ocache.go +++ b/app/ocache/ocache.go @@ -3,7 +3,7 @@ package ocache import ( "context" "errors" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "go.uber.org/zap" "sync" "time" diff --git a/commonfile/fileblockstore/fileblockstore.go b/commonfile/fileblockstore/fileblockstore.go index 99c89b20..fad518af 100644 --- a/commonfile/fileblockstore/fileblockstore.go +++ b/commonfile/fileblockstore/fileblockstore.go @@ -2,8 +2,8 @@ package fileblockstore import ( "context" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonfile/fileproto/fileprotoerr" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonfile/fileproto/fileprotoerr" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" ) diff --git a/commonfile/fileproto/fileprotoerr/fileprotoerr.go b/commonfile/fileproto/fileprotoerr/fileprotoerr.go index 5e2bf605..d5ff4d13 100644 --- a/commonfile/fileproto/fileprotoerr/fileprotoerr.go +++ b/commonfile/fileproto/fileprotoerr/fileprotoerr.go @@ -2,8 +2,8 @@ package fileprotoerr import ( "fmt" - "github.com/anytypeio/any-sync/commonfile/fileproto" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/commonfile/fileproto" + "github.com/anyproto/any-sync/net/rpc/rpcerr" ) var ( diff --git a/commonfile/fileservice/blockservice.go b/commonfile/fileservice/blockservice.go index b80cccc9..876accf9 100644 --- a/commonfile/fileservice/blockservice.go +++ b/commonfile/fileservice/blockservice.go @@ -2,7 +2,7 @@ package fileservice import ( "context" - "github.com/anytypeio/any-sync/commonfile/fileblockstore" + "github.com/anyproto/any-sync/commonfile/fileblockstore" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-blockservice" "github.com/ipfs/go-cid" diff --git a/commonfile/fileservice/fileservice.go b/commonfile/fileservice/fileservice.go index c938ac08..fc2ed78c 100644 --- a/commonfile/fileservice/fileservice.go +++ b/commonfile/fileservice/fileservice.go @@ -3,9 +3,9 @@ package fileservice import ( "context" "fmt" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonfile/fileblockstore" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonfile/fileblockstore" "github.com/ipfs/go-cid" chunker "github.com/ipfs/go-ipfs-chunker" ipld "github.com/ipfs/go-ipld-format" diff --git a/commonspace/commongetter.go b/commonspace/commongetter.go index 74356281..80476a14 100644 --- a/commonspace/commongetter.go +++ b/commonspace/commongetter.go @@ -2,9 +2,9 @@ package commonspace import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/syncobjectgetter" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/object/syncobjectgetter" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/treemanager" "sync/atomic" ) diff --git a/commonspace/commonstorage.go b/commonspace/commonstorage.go index 54ba581b..207b6885 100644 --- a/commonspace/commonstorage.go +++ b/commonspace/commonstorage.go @@ -1,8 +1,8 @@ package commonspace import ( - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/spacestorage" ) type commonStorage struct { diff --git a/commonspace/credentialprovider/credentialprovider.go b/commonspace/credentialprovider/credentialprovider.go index 0b188278..ce570904 100644 --- a/commonspace/credentialprovider/credentialprovider.go +++ b/commonspace/credentialprovider/credentialprovider.go @@ -1,9 +1,9 @@ -//go:generate mockgen -destination mock_credentialprovider/mock_credentialprovider.go github.com/anytypeio/any-sync/commonspace/credentialprovider CredentialProvider +//go:generate mockgen -destination mock_credentialprovider/mock_credentialprovider.go github.com/anyproto/any-sync/commonspace/credentialprovider CredentialProvider package credentialprovider import ( "context" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) const CName = "common.commonspace.credentialprovider" diff --git a/commonspace/credentialprovider/mock_credentialprovider/mock_credentialprovider.go b/commonspace/credentialprovider/mock_credentialprovider/mock_credentialprovider.go index daa3ccab..a1f8dd97 100644 --- a/commonspace/credentialprovider/mock_credentialprovider/mock_credentialprovider.go +++ b/commonspace/credentialprovider/mock_credentialprovider/mock_credentialprovider.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/credentialprovider (interfaces: CredentialProvider) +// Source: github.com/anyproto/any-sync/commonspace/credentialprovider (interfaces: CredentialProvider) // Package mock_credentialprovider is a generated GoMock package. package mock_credentialprovider @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/deletion_test.go b/commonspace/deletion_test.go index 27ff2b0f..64d6fa11 100644 --- a/commonspace/deletion_test.go +++ b/commonspace/deletion_test.go @@ -3,15 +3,15 @@ package commonspace import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/settings" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/settings" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/util/crypto" "github.com/stretchr/testify/require" "math/rand" "testing" diff --git a/commonspace/headsync/diffsyncer.go b/commonspace/headsync/diffsyncer.go index feee7e11..57253531 100644 --- a/commonspace/headsync/diffsyncer.go +++ b/commonspace/headsync/diffsyncer.go @@ -3,18 +3,18 @@ package headsync import ( "context" "fmt" - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/credentialprovider" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/credentialprovider" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/rpc/rpcerr" "go.uber.org/zap" "time" ) diff --git a/commonspace/headsync/diffsyncer_test.go b/commonspace/headsync/diffsyncer_test.go index bdbcab58..3f9f4c1f 100644 --- a/commonspace/headsync/diffsyncer_test.go +++ b/commonspace/headsync/diffsyncer_test.go @@ -4,22 +4,22 @@ import ( "bytes" "context" "fmt" - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/app/ldiff/mock_ldiff" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/credentialprovider/mock_credentialprovider" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage/mock_liststorage" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - mock_treestorage "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage/mock_treestorage" - "github.com/anytypeio/any-sync/commonspace/object/treemanager/mock_treemanager" - "github.com/anytypeio/any-sync/commonspace/peermanager/mock_peermanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate/mock_settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto/mock_spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/net/peer" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/app/ldiff/mock_ldiff" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/credentialprovider/mock_credentialprovider" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage/mock_liststorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + mock_treestorage "github.com/anyproto/any-sync/commonspace/object/tree/treestorage/mock_treestorage" + "github.com/anyproto/any-sync/commonspace/object/treemanager/mock_treemanager" + "github.com/anyproto/any-sync/commonspace/peermanager/mock_peermanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate/mock_settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage/mock_spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto/mock_spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/net/peer" "github.com/golang/mock/gomock" "github.com/libp2p/go-libp2p/core/sec" "github.com/stretchr/testify/require" diff --git a/commonspace/headsync/headsync.go b/commonspace/headsync/headsync.go index 27ca8b5e..21f8acb1 100644 --- a/commonspace/headsync/headsync.go +++ b/commonspace/headsync/headsync.go @@ -1,20 +1,20 @@ -//go:generate mockgen -destination mock_headsync/mock_headsync.go github.com/anytypeio/any-sync/commonspace/headsync DiffSyncer +//go:generate mockgen -destination mock_headsync/mock_headsync.go github.com/anyproto/any-sync/commonspace/headsync DiffSyncer package headsync import ( "context" - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/credentialprovider" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/util/periodicsync" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/credentialprovider" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/util/periodicsync" "go.uber.org/zap" "golang.org/x/exp/slices" "strings" diff --git a/commonspace/headsync/headsync_test.go b/commonspace/headsync/headsync_test.go index a6e505b9..c803edc4 100644 --- a/commonspace/headsync/headsync_test.go +++ b/commonspace/headsync/headsync_test.go @@ -1,14 +1,14 @@ package headsync import ( - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/app/ldiff/mock_ldiff" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/headsync/mock_headsync" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage/mock_treestorage" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate/mock_settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage" - "github.com/anytypeio/any-sync/util/periodicsync/mock_periodicsync" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/app/ldiff/mock_ldiff" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/headsync/mock_headsync" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage/mock_treestorage" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate/mock_settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage/mock_spacestorage" + "github.com/anyproto/any-sync/util/periodicsync/mock_periodicsync" "github.com/golang/mock/gomock" "testing" ) diff --git a/commonspace/headsync/mock_headsync/mock_headsync.go b/commonspace/headsync/mock_headsync/mock_headsync.go index 8a2f74dc..2ad6ac81 100644 --- a/commonspace/headsync/mock_headsync/mock_headsync.go +++ b/commonspace/headsync/mock_headsync/mock_headsync.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/headsync (interfaces: DiffSyncer) +// Source: github.com/anyproto/any-sync/commonspace/headsync (interfaces: DiffSyncer) // Package mock_headsync is a generated GoMock package. package mock_headsync @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - settingsstate "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" + settingsstate "github.com/anyproto/any-sync/commonspace/settings/settingsstate" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/headsync/remotediff.go b/commonspace/headsync/remotediff.go index 7877d93e..a78d1180 100644 --- a/commonspace/headsync/remotediff.go +++ b/commonspace/headsync/remotediff.go @@ -2,8 +2,8 @@ package headsync import ( "context" - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) type Client interface { diff --git a/commonspace/headsync/remotediff_test.go b/commonspace/headsync/remotediff_test.go index c5f7203d..99f80840 100644 --- a/commonspace/headsync/remotediff_test.go +++ b/commonspace/headsync/remotediff_test.go @@ -3,8 +3,8 @@ package headsync import ( "context" "fmt" - "github.com/anytypeio/any-sync/app/ldiff" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/app/ldiff" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" diff --git a/commonspace/object/accountdata/accountdata.go b/commonspace/object/accountdata/accountdata.go index b6816a2d..e8a06775 100644 --- a/commonspace/object/accountdata/accountdata.go +++ b/commonspace/object/accountdata/accountdata.go @@ -2,7 +2,7 @@ package accountdata import ( "crypto/rand" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" ) type AccountKeys struct { diff --git a/commonspace/object/acl/list/aclrecordbuilder.go b/commonspace/object/acl/list/aclrecordbuilder.go index 741cac66..a1e89560 100644 --- a/commonspace/object/acl/list/aclrecordbuilder.go +++ b/commonspace/object/acl/list/aclrecordbuilder.go @@ -1,9 +1,9 @@ package list import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/util/cidutil" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/util/cidutil" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" "time" ) diff --git a/commonspace/object/acl/list/aclstate.go b/commonspace/object/acl/list/aclstate.go index 6bdd30aa..a780c315 100644 --- a/commonspace/object/acl/list/aclstate.go +++ b/commonspace/object/acl/list/aclstate.go @@ -3,9 +3,9 @@ package list import ( "errors" "fmt" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" "go.uber.org/zap" ) diff --git a/commonspace/object/acl/list/aclstatebuilder.go b/commonspace/object/acl/list/aclstatebuilder.go index b9f63e69..9e11974a 100644 --- a/commonspace/object/acl/list/aclstatebuilder.go +++ b/commonspace/object/acl/list/aclstatebuilder.go @@ -1,8 +1,8 @@ package list import ( - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/util/crypto" ) type aclStateBuilder struct { diff --git a/commonspace/object/acl/list/list.go b/commonspace/object/acl/list/list.go index d714f407..6c31c9de 100644 --- a/commonspace/object/acl/list/list.go +++ b/commonspace/object/acl/list/list.go @@ -1,14 +1,14 @@ -//go:generate mockgen -destination mock_list/mock_list.go github.com/anytypeio/any-sync/commonspace/object/acl/list AclList +//go:generate mockgen -destination mock_list/mock_list.go github.com/anyproto/any-sync/commonspace/object/acl/list AclList package list import ( "context" "errors" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/util/crypto" "sync" ) diff --git a/commonspace/object/acl/list/list_test.go b/commonspace/object/acl/list/list_test.go index ec087c8a..19229ace 100644 --- a/commonspace/object/acl/list/list_test.go +++ b/commonspace/object/acl/list/list_test.go @@ -2,7 +2,7 @@ package list import ( "fmt" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/accountdata" "github.com/stretchr/testify/require" "testing" ) diff --git a/commonspace/object/acl/list/listutils.go b/commonspace/object/acl/list/listutils.go index 342bddb1..59e87888 100644 --- a/commonspace/object/acl/list/listutils.go +++ b/commonspace/object/acl/list/listutils.go @@ -1,10 +1,10 @@ package list import ( - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/util/crypto" ) func NewTestDerivedAcl(spaceId string, keys *accountdata.AccountKeys) (AclList, error) { diff --git a/commonspace/object/acl/list/mock_list/mock_list.go b/commonspace/object/acl/list/mock_list/mock_list.go index 3d3163d9..b81f0f80 100644 --- a/commonspace/object/acl/list/mock_list/mock_list.go +++ b/commonspace/object/acl/list/mock_list/mock_list.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/acl/list (interfaces: AclList) +// Source: github.com/anyproto/any-sync/commonspace/object/acl/list (interfaces: AclList) // Package mock_list is a generated GoMock package. package mock_list @@ -7,9 +7,9 @@ package mock_list import ( reflect "reflect" - aclrecordproto "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - list "github.com/anytypeio/any-sync/commonspace/object/acl/list" - crypto "github.com/anytypeio/any-sync/util/crypto" + aclrecordproto "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + list "github.com/anyproto/any-sync/commonspace/object/acl/list" + crypto "github.com/anyproto/any-sync/util/crypto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/acl/list/models.go b/commonspace/object/acl/list/models.go index 8c82325e..7375c7c6 100644 --- a/commonspace/object/acl/list/models.go +++ b/commonspace/object/acl/list/models.go @@ -1,8 +1,8 @@ package list import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/util/crypto" ) type AclRecord struct { diff --git a/commonspace/object/acl/liststorage/inmemory.go b/commonspace/object/acl/liststorage/inmemory.go index 848745cb..615fe948 100644 --- a/commonspace/object/acl/liststorage/inmemory.go +++ b/commonspace/object/acl/liststorage/inmemory.go @@ -3,7 +3,7 @@ package liststorage import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" "sync" ) diff --git a/commonspace/object/acl/liststorage/liststorage.go b/commonspace/object/acl/liststorage/liststorage.go index 1991ac0d..416fe100 100644 --- a/commonspace/object/acl/liststorage/liststorage.go +++ b/commonspace/object/acl/liststorage/liststorage.go @@ -1,10 +1,10 @@ -//go:generate mockgen -destination mock_liststorage/mock_liststorage.go github.com/anytypeio/any-sync/commonspace/object/acl/liststorage ListStorage +//go:generate mockgen -destination mock_liststorage/mock_liststorage.go github.com/anyproto/any-sync/commonspace/object/acl/liststorage ListStorage package liststorage import ( "context" "errors" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" ) var ( diff --git a/commonspace/object/acl/liststorage/mock_liststorage/mock_liststorage.go b/commonspace/object/acl/liststorage/mock_liststorage/mock_liststorage.go index e2e311d9..ce0a8bbf 100644 --- a/commonspace/object/acl/liststorage/mock_liststorage/mock_liststorage.go +++ b/commonspace/object/acl/liststorage/mock_liststorage/mock_liststorage.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/acl/liststorage (interfaces: ListStorage) +// Source: github.com/anyproto/any-sync/commonspace/object/acl/liststorage (interfaces: ListStorage) // Package mock_liststorage is a generated GoMock package. package mock_liststorage @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - aclrecordproto "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" + aclrecordproto "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/acl/syncacl/syncacl.go b/commonspace/object/acl/syncacl/syncacl.go index 1e2546b7..dd1e647e 100644 --- a/commonspace/object/acl/syncacl/syncacl.go +++ b/commonspace/object/acl/syncacl/syncacl.go @@ -1,9 +1,9 @@ package syncacl import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" ) type SyncAcl struct { diff --git a/commonspace/object/acl/syncacl/syncaclhandler.go b/commonspace/object/acl/syncacl/syncaclhandler.go index 124dda31..5880f70f 100644 --- a/commonspace/object/acl/syncacl/syncaclhandler.go +++ b/commonspace/object/acl/syncacl/syncaclhandler.go @@ -3,9 +3,9 @@ package syncacl import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) type syncAclHandler struct { diff --git a/commonspace/object/syncobjectgetter/syncobjectgetter.go b/commonspace/object/syncobjectgetter/syncobjectgetter.go index 7e40b47a..fcf5f3ff 100644 --- a/commonspace/object/syncobjectgetter/syncobjectgetter.go +++ b/commonspace/object/syncobjectgetter/syncobjectgetter.go @@ -2,7 +2,7 @@ package syncobjectgetter import ( "context" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" ) type SyncObject interface { diff --git a/commonspace/object/tree/exporter/treeexporter.go b/commonspace/object/tree/exporter/treeexporter.go index 459d6c75..006ee8a1 100644 --- a/commonspace/object/tree/exporter/treeexporter.go +++ b/commonspace/object/tree/exporter/treeexporter.go @@ -1,11 +1,11 @@ package exporter import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/crypto" ) type DataConverter interface { diff --git a/commonspace/object/tree/exporter/treeimport.go b/commonspace/object/tree/exporter/treeimport.go index f0ac9a82..2e83ab11 100644 --- a/commonspace/object/tree/exporter/treeimport.go +++ b/commonspace/object/tree/exporter/treeimport.go @@ -1,10 +1,10 @@ package exporter import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" ) type TreeImportParams struct { diff --git a/commonspace/object/tree/objecttree/change.go b/commonspace/object/tree/objecttree/change.go index 1f7dc442..635cb843 100644 --- a/commonspace/object/tree/objecttree/change.go +++ b/commonspace/object/tree/objecttree/change.go @@ -2,8 +2,8 @@ package objecttree import ( "errors" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" ) diff --git a/commonspace/object/tree/objecttree/changebuilder.go b/commonspace/object/tree/objecttree/changebuilder.go index 31653b34..038ce528 100644 --- a/commonspace/object/tree/objecttree/changebuilder.go +++ b/commonspace/object/tree/objecttree/changebuilder.go @@ -2,9 +2,9 @@ package objecttree import ( "errors" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/util/cidutil" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/util/cidutil" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" ) diff --git a/commonspace/object/tree/objecttree/mock_objecttree/mock_objecttree.go b/commonspace/object/tree/objecttree/mock_objecttree/mock_objecttree.go index e2ebe8e0..1f0897a5 100644 --- a/commonspace/object/tree/objecttree/mock_objecttree/mock_objecttree.go +++ b/commonspace/object/tree/objecttree/mock_objecttree/mock_objecttree.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/tree/objecttree (interfaces: ObjectTree) +// Source: github.com/anyproto/any-sync/commonspace/object/tree/objecttree (interfaces: ObjectTree) // Package mock_objecttree is a generated GoMock package. package mock_objecttree @@ -9,10 +9,10 @@ import ( reflect "reflect" time "time" - list "github.com/anytypeio/any-sync/commonspace/object/acl/list" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - treestorage "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" + list "github.com/anyproto/any-sync/commonspace/object/acl/list" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + treestorage "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/tree/objecttree/objecttree.go b/commonspace/object/tree/objecttree/objecttree.go index ef909833..56a72ff9 100644 --- a/commonspace/object/tree/objecttree/objecttree.go +++ b/commonspace/object/tree/objecttree/objecttree.go @@ -1,18 +1,18 @@ -//go:generate mockgen -destination mock_objecttree/mock_objecttree.go github.com/anytypeio/any-sync/commonspace/object/tree/objecttree ObjectTree +//go:generate mockgen -destination mock_objecttree/mock_objecttree.go github.com/anyproto/any-sync/commonspace/object/tree/objecttree ObjectTree package objecttree import ( "context" "errors" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" "sync" "time" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/slice" ) type RWLocker interface { diff --git a/commonspace/object/tree/objecttree/objecttree_test.go b/commonspace/object/tree/objecttree/objecttree_test.go index 26cdb202..0dd255f8 100644 --- a/commonspace/object/tree/objecttree/objecttree_test.go +++ b/commonspace/object/tree/objecttree/objecttree_test.go @@ -3,10 +3,10 @@ package objecttree import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/commonspace/object/tree/objecttree/objecttreefactory.go b/commonspace/object/tree/objecttree/objecttreefactory.go index 0bc3f53c..13cf5e5c 100644 --- a/commonspace/object/tree/objecttree/objecttreefactory.go +++ b/commonspace/object/tree/objecttree/objecttreefactory.go @@ -1,10 +1,10 @@ package objecttree import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/crypto" ) type ObjectTreeCreatePayload struct { diff --git a/commonspace/object/tree/objecttree/objecttreevalidator.go b/commonspace/object/tree/objecttree/objecttreevalidator.go index e2816246..59b74d58 100644 --- a/commonspace/object/tree/objecttree/objecttreevalidator.go +++ b/commonspace/object/tree/objecttree/objecttreevalidator.go @@ -3,10 +3,10 @@ package objecttree import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/slice" ) type ObjectTreeValidator interface { diff --git a/commonspace/object/tree/objecttree/rawloader.go b/commonspace/object/tree/objecttree/rawloader.go index c9234b5b..894a6494 100644 --- a/commonspace/object/tree/objecttree/rawloader.go +++ b/commonspace/object/tree/objecttree/rawloader.go @@ -2,9 +2,9 @@ package objecttree import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/slice" "time" ) diff --git a/commonspace/object/tree/objecttree/signablecontent.go b/commonspace/object/tree/objecttree/signablecontent.go index a48fef5b..b16890b5 100644 --- a/commonspace/object/tree/objecttree/signablecontent.go +++ b/commonspace/object/tree/objecttree/signablecontent.go @@ -1,7 +1,7 @@ package objecttree import ( - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" ) // SignableChangeContent is a payload to be passed when we are creating change diff --git a/commonspace/object/tree/objecttree/testutils.go b/commonspace/object/tree/objecttree/testutils.go index 1557ebe6..adb20349 100644 --- a/commonspace/object/tree/objecttree/testutils.go +++ b/commonspace/object/tree/objecttree/testutils.go @@ -2,9 +2,9 @@ package objecttree import ( "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/crypto" libcrypto "github.com/libp2p/go-libp2p/core/crypto" ) diff --git a/commonspace/object/tree/objecttree/treebuilder.go b/commonspace/object/tree/objecttree/treebuilder.go index 0abb136b..56d43bcd 100644 --- a/commonspace/object/tree/objecttree/treebuilder.go +++ b/commonspace/object/tree/objecttree/treebuilder.go @@ -6,9 +6,9 @@ import ( "fmt" "time" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/slice" "go.uber.org/zap" ) diff --git a/commonspace/object/tree/objecttree/util.go b/commonspace/object/tree/objecttree/util.go index 70911364..3f123e7e 100644 --- a/commonspace/object/tree/objecttree/util.go +++ b/commonspace/object/tree/objecttree/util.go @@ -2,7 +2,7 @@ package objecttree import ( "fmt" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" "math/rand" ) diff --git a/commonspace/object/tree/synctree/mock_synctree/mock_synctree.go b/commonspace/object/tree/synctree/mock_synctree/mock_synctree.go index 07eb8878..0f9d40ba 100644 --- a/commonspace/object/tree/synctree/mock_synctree/mock_synctree.go +++ b/commonspace/object/tree/synctree/mock_synctree/mock_synctree.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/tree/synctree (interfaces: SyncTree,ReceiveQueue,HeadNotifiable) +// Source: github.com/anyproto/any-sync/commonspace/object/tree/synctree (interfaces: SyncTree,ReceiveQueue,HeadNotifiable) // Package mock_synctree is a generated GoMock package. package mock_synctree @@ -9,12 +9,12 @@ import ( reflect "reflect" time "time" - list "github.com/anytypeio/any-sync/commonspace/object/acl/list" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - updatelistener "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - treestorage "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + list "github.com/anyproto/any-sync/commonspace/object/acl/list" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + updatelistener "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + treestorage "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/tree/synctree/receivequeue.go b/commonspace/object/tree/synctree/receivequeue.go index bed126dd..5f43529a 100644 --- a/commonspace/object/tree/synctree/receivequeue.go +++ b/commonspace/object/tree/synctree/receivequeue.go @@ -2,7 +2,7 @@ package synctree import ( "errors" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" "sync" ) diff --git a/commonspace/object/tree/synctree/syncprotocol_test.go b/commonspace/object/tree/synctree/syncprotocol_test.go index a23554c6..944d6684 100644 --- a/commonspace/object/tree/synctree/syncprotocol_test.go +++ b/commonspace/object/tree/synctree/syncprotocol_test.go @@ -2,12 +2,12 @@ package synctree import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/util/slice" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" "math/rand" diff --git a/commonspace/object/tree/synctree/synctree.go b/commonspace/object/tree/synctree/synctree.go index 683691d2..2a87030a 100644 --- a/commonspace/object/tree/synctree/synctree.go +++ b/commonspace/object/tree/synctree/synctree.go @@ -1,4 +1,4 @@ -//go:generate mockgen -destination mock_synctree/mock_synctree.go github.com/anytypeio/any-sync/commonspace/object/tree/synctree SyncTree,ReceiveQueue,HeadNotifiable +//go:generate mockgen -destination mock_synctree/mock_synctree.go github.com/anyproto/any-sync/commonspace/object/tree/synctree SyncTree,ReceiveQueue,HeadNotifiable package synctree import ( @@ -6,17 +6,17 @@ import ( "errors" "time" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/nodeconf" "go.uber.org/zap" ) diff --git a/commonspace/object/tree/synctree/synctree_test.go b/commonspace/object/tree/synctree/synctree_test.go index 8b3b4865..9900e49b 100644 --- a/commonspace/object/tree/synctree/synctree_test.go +++ b/commonspace/object/tree/synctree/synctree_test.go @@ -2,15 +2,15 @@ package synctree import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree/mock_objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener/mock_updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/mock_objectsync" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree/mock_objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener/mock_updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/mock_objectsync" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/nodeconf" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "testing" diff --git a/commonspace/object/tree/synctree/synctreehandler.go b/commonspace/object/tree/synctree/synctreehandler.go index 7584e7fd..cdb0aa2a 100644 --- a/commonspace/object/tree/synctree/synctreehandler.go +++ b/commonspace/object/tree/synctree/synctreehandler.go @@ -2,13 +2,13 @@ package synctree import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/util/slice" "github.com/gogo/protobuf/proto" "go.uber.org/zap" "sync" diff --git a/commonspace/object/tree/synctree/synctreehandler_test.go b/commonspace/object/tree/synctree/synctreehandler_test.go index 401f9989..c81ca5f4 100644 --- a/commonspace/object/tree/synctree/synctreehandler_test.go +++ b/commonspace/object/tree/synctree/synctreehandler_test.go @@ -3,16 +3,16 @@ package synctree import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/mock_objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/mock_objectsync" "sync" "testing" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree/mock_objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree/mock_objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/commonspace/object/tree/synctree/treeremotegetter.go b/commonspace/object/tree/synctree/treeremotegetter.go index e9b8323e..3006ab5b 100644 --- a/commonspace/object/tree/synctree/treeremotegetter.go +++ b/commonspace/object/tree/synctree/treeremotegetter.go @@ -3,12 +3,12 @@ package synctree import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/rpc/rpcerr" "github.com/gogo/protobuf/proto" "go.uber.org/zap" "time" diff --git a/commonspace/object/tree/synctree/updatelistener/mock_updatelistener/mock_updatelistener.go b/commonspace/object/tree/synctree/updatelistener/mock_updatelistener/mock_updatelistener.go index f02debc1..794b9381 100644 --- a/commonspace/object/tree/synctree/updatelistener/mock_updatelistener/mock_updatelistener.go +++ b/commonspace/object/tree/synctree/updatelistener/mock_updatelistener/mock_updatelistener.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener (interfaces: UpdateListener) +// Source: github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener (interfaces: UpdateListener) // Package mock_updatelistener is a generated GoMock package. package mock_updatelistener @@ -7,7 +7,7 @@ package mock_updatelistener import ( reflect "reflect" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/tree/synctree/updatelistener/updatelistener.go b/commonspace/object/tree/synctree/updatelistener/updatelistener.go index f76d5c0f..f0d9ab5e 100644 --- a/commonspace/object/tree/synctree/updatelistener/updatelistener.go +++ b/commonspace/object/tree/synctree/updatelistener/updatelistener.go @@ -1,8 +1,8 @@ -//go:generate mockgen -destination mock_updatelistener/mock_updatelistener.go github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener UpdateListener +//go:generate mockgen -destination mock_updatelistener/mock_updatelistener.go github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener UpdateListener package updatelistener import ( - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" ) type UpdateListener interface { diff --git a/commonspace/object/tree/synctree/utils_test.go b/commonspace/object/tree/synctree/utils_test.go index bdbc0052..46936560 100644 --- a/commonspace/object/tree/synctree/utils_test.go +++ b/commonspace/object/tree/synctree/utils_test.go @@ -3,15 +3,15 @@ package synctree import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/net/peer" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/net/peer" "github.com/cheggaaa/mb/v3" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" diff --git a/commonspace/object/tree/treechangeproto/errors.go b/commonspace/object/tree/treechangeproto/errors.go index 375ebedb..4daa78ab 100644 --- a/commonspace/object/tree/treechangeproto/errors.go +++ b/commonspace/object/tree/treechangeproto/errors.go @@ -2,7 +2,7 @@ package treechangeproto import ( "errors" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/net/rpc/rpcerr" ) var ( diff --git a/commonspace/object/tree/treechangeproto/treechange.go b/commonspace/object/tree/treechangeproto/treechange.go index 92ef3f16..ee5b8738 100644 --- a/commonspace/object/tree/treechangeproto/treechange.go +++ b/commonspace/object/tree/treechangeproto/treechange.go @@ -1,6 +1,6 @@ package treechangeproto -import "github.com/anytypeio/any-sync/net/rpc/rpcerr" +import "github.com/anyproto/any-sync/net/rpc/rpcerr" func WrapHeadUpdate(update *TreeHeadUpdate, rootChange *RawTreeChangeWithId) *TreeSyncMessage { return &TreeSyncMessage{ diff --git a/commonspace/object/tree/treestorage/inmemory.go b/commonspace/object/tree/treestorage/inmemory.go index a3f3aaa3..6d1d5ddc 100644 --- a/commonspace/object/tree/treestorage/inmemory.go +++ b/commonspace/object/tree/treestorage/inmemory.go @@ -3,8 +3,8 @@ package treestorage import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/util/slice" "sync" ) diff --git a/commonspace/object/tree/treestorage/mock_treestorage/mock_treestorage.go b/commonspace/object/tree/treestorage/mock_treestorage/mock_treestorage.go index be338599..2db9a949 100644 --- a/commonspace/object/tree/treestorage/mock_treestorage/mock_treestorage.go +++ b/commonspace/object/tree/treestorage/mock_treestorage/mock_treestorage.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/tree/treestorage (interfaces: TreeStorage) +// Source: github.com/anyproto/any-sync/commonspace/object/tree/treestorage (interfaces: TreeStorage) // Package mock_treestorage is a generated GoMock package. package mock_treestorage @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/tree/treestorage/treestorage.go b/commonspace/object/tree/treestorage/treestorage.go index db566f86..85687925 100644 --- a/commonspace/object/tree/treestorage/treestorage.go +++ b/commonspace/object/tree/treestorage/treestorage.go @@ -1,10 +1,10 @@ -//go:generate mockgen -destination mock_treestorage/mock_treestorage.go github.com/anytypeio/any-sync/commonspace/object/tree/treestorage TreeStorage +//go:generate mockgen -destination mock_treestorage/mock_treestorage.go github.com/anyproto/any-sync/commonspace/object/tree/treestorage TreeStorage package treestorage import ( "context" "errors" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" ) var ( diff --git a/commonspace/object/treemanager/mock_treemanager/mock_treemanager.go b/commonspace/object/treemanager/mock_treemanager/mock_treemanager.go index 8c0f12a9..7e321468 100644 --- a/commonspace/object/treemanager/mock_treemanager/mock_treemanager.go +++ b/commonspace/object/treemanager/mock_treemanager/mock_treemanager.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/object/treemanager (interfaces: TreeManager) +// Source: github.com/anyproto/any-sync/commonspace/object/treemanager (interfaces: TreeManager) // Package mock_treemanager is a generated GoMock package. package mock_treemanager @@ -8,8 +8,8 @@ import ( context "context" reflect "reflect" - app "github.com/anytypeio/any-sync/app" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" + app "github.com/anyproto/any-sync/app" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/object/treemanager/treemanager.go b/commonspace/object/treemanager/treemanager.go index 0cc5513c..3fd9ab4c 100644 --- a/commonspace/object/treemanager/treemanager.go +++ b/commonspace/object/treemanager/treemanager.go @@ -1,10 +1,10 @@ -//go:generate mockgen -destination mock_treemanager/mock_treemanager.go github.com/anytypeio/any-sync/commonspace/object/treemanager TreeManager +//go:generate mockgen -destination mock_treemanager/mock_treemanager.go github.com/anyproto/any-sync/commonspace/object/treemanager TreeManager package treemanager import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" ) const CName = "common.object.treemanager" diff --git a/commonspace/objectsync/mock_objectsync/mock_objectsync.go b/commonspace/objectsync/mock_objectsync/mock_objectsync.go index cd9724ef..5aee48e8 100644 --- a/commonspace/objectsync/mock_objectsync/mock_objectsync.go +++ b/commonspace/objectsync/mock_objectsync/mock_objectsync.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/objectsync (interfaces: SyncClient) +// Source: github.com/anyproto/any-sync/commonspace/objectsync (interfaces: SyncClient) // Package mock_objectsync is a generated GoMock package. package mock_objectsync @@ -8,10 +8,10 @@ import ( context "context" reflect "reflect" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - objectsync "github.com/anytypeio/any-sync/commonspace/objectsync" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + objectsync "github.com/anyproto/any-sync/commonspace/objectsync" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/objectsync/msgpool.go b/commonspace/objectsync/msgpool.go index e62820cc..db6a15e4 100644 --- a/commonspace/objectsync/msgpool.go +++ b/commonspace/objectsync/msgpool.go @@ -3,9 +3,9 @@ package objectsync import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "go.uber.org/zap" "strconv" "strings" diff --git a/commonspace/objectsync/objectsync.go b/commonspace/objectsync/objectsync.go index fef1d84d..e56ee6ed 100644 --- a/commonspace/objectsync/objectsync.go +++ b/commonspace/objectsync/objectsync.go @@ -1,21 +1,21 @@ -//go:generate mockgen -destination mock_objectsync/mock_objectsync.go github.com/anytypeio/any-sync/commonspace/objectsync SyncClient +//go:generate mockgen -destination mock_objectsync/mock_objectsync.go github.com/anyproto/any-sync/commonspace/objectsync SyncClient package objectsync import ( "context" "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" "github.com/gogo/protobuf/proto" "sync/atomic" "time" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/syncobjectgetter" - "github.com/anytypeio/any-sync/commonspace/objectsync/synchandler" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/syncobjectgetter" + "github.com/anyproto/any-sync/commonspace/objectsync/synchandler" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/nodeconf" "go.uber.org/zap" "golang.org/x/exp/slices" ) diff --git a/commonspace/objectsync/requestfactory.go b/commonspace/objectsync/requestfactory.go index 4d6a9124..1f4f3c7d 100644 --- a/commonspace/objectsync/requestfactory.go +++ b/commonspace/objectsync/requestfactory.go @@ -2,9 +2,9 @@ package objectsync import ( "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/util/slice" ) type RequestFactory interface { diff --git a/commonspace/objectsync/syncclient.go b/commonspace/objectsync/syncclient.go index 5ba1ab0c..aad712bd 100644 --- a/commonspace/objectsync/syncclient.go +++ b/commonspace/objectsync/syncclient.go @@ -2,8 +2,8 @@ package objectsync import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "go.uber.org/zap" ) diff --git a/commonspace/objectsync/synchandler/synchhandler.go b/commonspace/objectsync/synchandler/synchhandler.go index 00dfd0e3..35aebb1e 100644 --- a/commonspace/objectsync/synchandler/synchhandler.go +++ b/commonspace/objectsync/synchandler/synchhandler.go @@ -2,7 +2,7 @@ package synchandler import ( "context" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) type SyncHandler interface { diff --git a/commonspace/payloads.go b/commonspace/payloads.go index ebf6811b..5d2284d0 100644 --- a/commonspace/payloads.go +++ b/commonspace/payloads.go @@ -2,14 +2,14 @@ package commonspace import ( "errors" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/util/cidutil" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/util/cidutil" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" "hash/fnv" "math/rand" diff --git a/commonspace/payloads_test.go b/commonspace/payloads_test.go index 899b56dd..f144f623 100644 --- a/commonspace/payloads_test.go +++ b/commonspace/payloads_test.go @@ -2,14 +2,14 @@ package commonspace import ( "fmt" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/util/cidutil" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/util/cidutil" + "github.com/anyproto/any-sync/util/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "math/rand" diff --git a/commonspace/peermanager/mock_peermanager/mock_peermanager.go b/commonspace/peermanager/mock_peermanager/mock_peermanager.go index f7d0ce74..a77e0ab1 100644 --- a/commonspace/peermanager/mock_peermanager/mock_peermanager.go +++ b/commonspace/peermanager/mock_peermanager/mock_peermanager.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/peermanager (interfaces: PeerManager) +// Source: github.com/anyproto/any-sync/commonspace/peermanager (interfaces: PeerManager) // Package mock_peermanager is a generated GoMock package. package mock_peermanager @@ -8,8 +8,8 @@ import ( context "context" reflect "reflect" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - peer "github.com/anytypeio/any-sync/net/peer" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" + peer "github.com/anyproto/any-sync/net/peer" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/peermanager/peermanager.go b/commonspace/peermanager/peermanager.go index 676d000c..a4075f32 100644 --- a/commonspace/peermanager/peermanager.go +++ b/commonspace/peermanager/peermanager.go @@ -1,11 +1,11 @@ -//go:generate mockgen -destination mock_peermanager/mock_peermanager.go github.com/anytypeio/any-sync/commonspace/peermanager PeerManager +//go:generate mockgen -destination mock_peermanager/mock_peermanager.go github.com/anyproto/any-sync/commonspace/peermanager PeerManager package peermanager import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/net/peer" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/net/peer" ) const CName = "common.commonspace.peermanager" diff --git a/commonspace/settings/deleter.go b/commonspace/settings/deleter.go index 6cc3c0b5..322308de 100644 --- a/commonspace/settings/deleter.go +++ b/commonspace/settings/deleter.go @@ -2,10 +2,10 @@ package settings import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" "go.uber.org/zap" ) diff --git a/commonspace/settings/deleter_test.go b/commonspace/settings/deleter_test.go index 21719f93..54feed56 100644 --- a/commonspace/settings/deleter_test.go +++ b/commonspace/settings/deleter_test.go @@ -2,10 +2,10 @@ package settings import ( "fmt" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/object/treemanager/mock_treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate/mock_settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/object/treemanager/mock_treemanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate/mock_settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage/mock_spacestorage" "github.com/golang/mock/gomock" "testing" ) diff --git a/commonspace/settings/deletionmanager.go b/commonspace/settings/deletionmanager.go index eb66873d..2d3d47ff 100644 --- a/commonspace/settings/deletionmanager.go +++ b/commonspace/settings/deletionmanager.go @@ -2,8 +2,8 @@ package settings import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" "go.uber.org/zap" ) diff --git a/commonspace/settings/deletionmanager_test.go b/commonspace/settings/deletionmanager_test.go index 1f3afeae..9e6b4f05 100644 --- a/commonspace/settings/deletionmanager_test.go +++ b/commonspace/settings/deletionmanager_test.go @@ -2,10 +2,10 @@ package settings import ( "context" - "github.com/anytypeio/any-sync/commonspace/object/treemanager/mock_treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/mock_settings" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate/mock_settingsstate" + "github.com/anyproto/any-sync/commonspace/object/treemanager/mock_treemanager" + "github.com/anyproto/any-sync/commonspace/settings/mock_settings" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate/mock_settingsstate" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "testing" diff --git a/commonspace/settings/mock_settings/mock_settings.go b/commonspace/settings/mock_settings/mock_settings.go index 18338c0d..69598251 100644 --- a/commonspace/settings/mock_settings/mock_settings.go +++ b/commonspace/settings/mock_settings/mock_settings.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/settings (interfaces: DeletionManager,Deleter,SpaceIdsProvider) +// Source: github.com/anyproto/any-sync/commonspace/settings (interfaces: DeletionManager,Deleter,SpaceIdsProvider) // Package mock_settings is a generated GoMock package. package mock_settings @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - settingsstate "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" + settingsstate "github.com/anyproto/any-sync/commonspace/settings/settingsstate" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/settings/settings.go b/commonspace/settings/settings.go index c7539d4e..5c2b41cf 100644 --- a/commonspace/settings/settings.go +++ b/commonspace/settings/settings.go @@ -1,23 +1,23 @@ -//go:generate mockgen -destination mock_settings/mock_settings.go github.com/anytypeio/any-sync/commonspace/settings DeletionManager,Deleter,SpaceIdsProvider +//go:generate mockgen -destination mock_settings/mock_settings.go github.com/anyproto/any-sync/commonspace/settings DeletionManager,Deleter,SpaceIdsProvider package settings import ( "context" "errors" "fmt" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/nodeconf" "github.com/gogo/protobuf/proto" "go.uber.org/zap" "golang.org/x/exp/slices" diff --git a/commonspace/settings/settings_test.go b/commonspace/settings/settings_test.go index 264e6a11..31956c81 100644 --- a/commonspace/settings/settings_test.go +++ b/commonspace/settings/settings_test.go @@ -2,19 +2,19 @@ package settings import ( "context" - "github.com/anytypeio/any-sync/accountservice/mock_accountservice" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree/mock_objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/mock_synctree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/treemanager/mock_treemanager" - "github.com/anytypeio/any-sync/commonspace/settings/mock_settings" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate/mock_settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage" + "github.com/anyproto/any-sync/accountservice/mock_accountservice" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree/mock_objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/mock_synctree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/treemanager/mock_treemanager" + "github.com/anyproto/any-sync/commonspace/settings/mock_settings" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate/mock_settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage/mock_spacestorage" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "sync" diff --git a/commonspace/settings/settingsstate/changefactory.go b/commonspace/settings/settingsstate/changefactory.go index 03a8de2f..0bbec18a 100644 --- a/commonspace/settings/settingsstate/changefactory.go +++ b/commonspace/settings/settingsstate/changefactory.go @@ -1,7 +1,7 @@ package settingsstate import ( - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) type ChangeFactory interface { diff --git a/commonspace/settings/settingsstate/changefactory_test.go b/commonspace/settings/settingsstate/changefactory_test.go index 35cfbf55..b0cb52db 100644 --- a/commonspace/settings/settingsstate/changefactory_test.go +++ b/commonspace/settings/settingsstate/changefactory_test.go @@ -1,7 +1,7 @@ package settingsstate import ( - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" "golang.org/x/exp/slices" diff --git a/commonspace/settings/settingsstate/deletionstate.go b/commonspace/settings/settingsstate/deletionstate.go index 4641832e..f4e1d7ee 100644 --- a/commonspace/settings/settingsstate/deletionstate.go +++ b/commonspace/settings/settingsstate/deletionstate.go @@ -1,9 +1,9 @@ -//go:generate mockgen -destination mock_settingsstate/mock_settingsstate.go github.com/anytypeio/any-sync/commonspace/settings/settingsstate ObjectDeletionState,StateBuilder,ChangeFactory +//go:generate mockgen -destination mock_settingsstate/mock_settingsstate.go github.com/anyproto/any-sync/commonspace/settings/settingsstate ObjectDeletionState,StateBuilder,ChangeFactory package settingsstate import ( - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/spacestorage" "go.uber.org/zap" "sync" ) diff --git a/commonspace/settings/settingsstate/deletionstate_test.go b/commonspace/settings/settingsstate/deletionstate_test.go index 2320bf98..878a81b0 100644 --- a/commonspace/settings/settingsstate/deletionstate_test.go +++ b/commonspace/settings/settingsstate/deletionstate_test.go @@ -1,9 +1,9 @@ package settingsstate import ( - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacestorage/mock_spacestorage" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacestorage/mock_spacestorage" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "sort" diff --git a/commonspace/settings/settingsstate/mock_settingsstate/mock_settingsstate.go b/commonspace/settings/settingsstate/mock_settingsstate/mock_settingsstate.go index b19a26ee..41bc3b16 100644 --- a/commonspace/settings/settingsstate/mock_settingsstate/mock_settingsstate.go +++ b/commonspace/settings/settingsstate/mock_settingsstate/mock_settingsstate.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/settings/settingsstate (interfaces: ObjectDeletionState,StateBuilder,ChangeFactory) +// Source: github.com/anyproto/any-sync/commonspace/settings/settingsstate (interfaces: ObjectDeletionState,StateBuilder,ChangeFactory) // Package mock_settingsstate is a generated GoMock package. package mock_settingsstate @@ -7,8 +7,8 @@ package mock_settingsstate import ( reflect "reflect" - objecttree "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - settingsstate "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" + objecttree "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + settingsstate "github.com/anyproto/any-sync/commonspace/settings/settingsstate" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/settings/settingsstate/settingsstate.go b/commonspace/settings/settingsstate/settingsstate.go index bd010714..0b62c8d1 100644 --- a/commonspace/settings/settingsstate/settingsstate.go +++ b/commonspace/settings/settingsstate/settingsstate.go @@ -1,6 +1,6 @@ package settingsstate -import "github.com/anytypeio/any-sync/commonspace/spacesyncproto" +import "github.com/anyproto/any-sync/commonspace/spacesyncproto" type State struct { DeletedIds map[string]struct{} diff --git a/commonspace/settings/settingsstate/statebuilder.go b/commonspace/settings/settingsstate/statebuilder.go index 7f171ec3..5599b857 100644 --- a/commonspace/settings/settingsstate/statebuilder.go +++ b/commonspace/settings/settingsstate/statebuilder.go @@ -1,8 +1,8 @@ package settingsstate import ( - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "github.com/gogo/protobuf/proto" ) diff --git a/commonspace/settings/settingsstate/statebuilder_test.go b/commonspace/settings/settingsstate/statebuilder_test.go index 3119814b..a2cf3072 100644 --- a/commonspace/settings/settingsstate/statebuilder_test.go +++ b/commonspace/settings/settingsstate/statebuilder_test.go @@ -1,9 +1,9 @@ package settingsstate import ( - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree/mock_objecttree" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree/mock_objecttree" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "testing" diff --git a/commonspace/space.go b/commonspace/space.go index 6ad9c22e..9a22f453 100644 --- a/commonspace/space.go +++ b/commonspace/space.go @@ -3,29 +3,29 @@ package commonspace import ( "context" "errors" - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/headsync" - "github.com/anytypeio/any-sync/commonspace/object/acl/list" - "github.com/anytypeio/any-sync/commonspace/object/acl/syncacl" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree" - "github.com/anytypeio/any-sync/commonspace/object/tree/synctree/updatelistener" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/settings" - "github.com/anytypeio/any-sync/commonspace/settings/settingsstate" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/metric" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/util/crypto" - "github.com/anytypeio/any-sync/util/multiqueue" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/headsync" + "github.com/anyproto/any-sync/commonspace/object/acl/list" + "github.com/anyproto/any-sync/commonspace/object/acl/syncacl" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree" + "github.com/anyproto/any-sync/commonspace/object/tree/synctree/updatelistener" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/settings" + "github.com/anyproto/any-sync/commonspace/settings/settingsstate" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/metric" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/multiqueue" + "github.com/anyproto/any-sync/util/slice" "github.com/cheggaaa/mb/v3" "github.com/zeebo/errs" "go.uber.org/zap" diff --git a/commonspace/spaceservice.go b/commonspace/spaceservice.go index a73cf732..0e770dc1 100644 --- a/commonspace/spaceservice.go +++ b/commonspace/spaceservice.go @@ -2,25 +2,25 @@ package commonspace import ( "context" - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/credentialprovider" - "github.com/anytypeio/any-sync/commonspace/headsync" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/objectsync" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/commonspace/syncstatus" - "github.com/anytypeio/any-sync/metric" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/pool" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/credentialprovider" + "github.com/anyproto/any-sync/commonspace/headsync" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/objectsync" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/syncstatus" + "github.com/anyproto/any-sync/metric" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/pool" + "github.com/anyproto/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/nodeconf" "sync/atomic" ) diff --git a/commonspace/spacestorage/inmemoryprovider.go b/commonspace/spacestorage/inmemoryprovider.go index 02dd65ac..3ddfe02a 100644 --- a/commonspace/spacestorage/inmemoryprovider.go +++ b/commonspace/spacestorage/inmemoryprovider.go @@ -2,7 +2,7 @@ package spacestorage import ( "context" - "github.com/anytypeio/any-sync/app" + "github.com/anyproto/any-sync/app" "sync" ) diff --git a/commonspace/spacestorage/inmemorystorage.go b/commonspace/spacestorage/inmemorystorage.go index f6071afb..b728a8a6 100644 --- a/commonspace/spacestorage/inmemorystorage.go +++ b/commonspace/spacestorage/inmemorystorage.go @@ -1,11 +1,11 @@ package spacestorage import ( - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" "sync" ) diff --git a/commonspace/spacestorage/mock_spacestorage/mock_spacestorage.go b/commonspace/spacestorage/mock_spacestorage/mock_spacestorage.go index 93baa877..a8410488 100644 --- a/commonspace/spacestorage/mock_spacestorage/mock_spacestorage.go +++ b/commonspace/spacestorage/mock_spacestorage/mock_spacestorage.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/spacestorage (interfaces: SpaceStorage) +// Source: github.com/anyproto/any-sync/commonspace/spacestorage (interfaces: SpaceStorage) // Package mock_spacestorage is a generated GoMock package. package mock_spacestorage @@ -7,10 +7,10 @@ package mock_spacestorage import ( reflect "reflect" - liststorage "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - treestorage "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + liststorage "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + treestorage "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" gomock "github.com/golang/mock/gomock" ) diff --git a/commonspace/spacestorage/spacestorage.go b/commonspace/spacestorage/spacestorage.go index 25991922..cecd3736 100644 --- a/commonspace/spacestorage/spacestorage.go +++ b/commonspace/spacestorage/spacestorage.go @@ -1,15 +1,15 @@ -//go:generate mockgen -destination mock_spacestorage/mock_spacestorage.go github.com/anytypeio/any-sync/commonspace/spacestorage SpaceStorage +//go:generate mockgen -destination mock_spacestorage/mock_spacestorage.go github.com/anyproto/any-sync/commonspace/spacestorage SpaceStorage package spacestorage import ( "context" "errors" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/object/acl/aclrecordproto" - "github.com/anytypeio/any-sync/commonspace/object/acl/liststorage" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/object/acl/aclrecordproto" + "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" ) const CName = "common.commonspace.spacestorage" diff --git a/commonspace/spacesyncproto/errors.go b/commonspace/spacesyncproto/errors.go index 0760c70b..7c8f9b1e 100644 --- a/commonspace/spacesyncproto/errors.go +++ b/commonspace/spacesyncproto/errors.go @@ -2,7 +2,7 @@ package spacesyncproto import ( "errors" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/net/rpc/rpcerr" ) var ( diff --git a/commonspace/spacesyncproto/mock_spacesyncproto/mock_spacesyncproto.go b/commonspace/spacesyncproto/mock_spacesyncproto/mock_spacesyncproto.go index c21243e4..db8313a2 100644 --- a/commonspace/spacesyncproto/mock_spacesyncproto/mock_spacesyncproto.go +++ b/commonspace/spacesyncproto/mock_spacesyncproto/mock_spacesyncproto.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/commonspace/spacesyncproto (interfaces: DRPCSpaceSyncClient) +// Source: github.com/anyproto/any-sync/commonspace/spacesyncproto (interfaces: DRPCSpaceSyncClient) // Package mock_spacesyncproto is a generated GoMock package. package mock_spacesyncproto @@ -8,7 +8,7 @@ import ( context "context" reflect "reflect" - spacesyncproto "github.com/anytypeio/any-sync/commonspace/spacesyncproto" + spacesyncproto "github.com/anyproto/any-sync/commonspace/spacesyncproto" gomock "github.com/golang/mock/gomock" drpc "storj.io/drpc" ) diff --git a/commonspace/spacesyncproto/spacesync.go b/commonspace/spacesyncproto/spacesync.go index ae4e8b7a..39f5a25a 100644 --- a/commonspace/spacesyncproto/spacesync.go +++ b/commonspace/spacesyncproto/spacesync.go @@ -1,4 +1,4 @@ -//go:generate mockgen -destination mock_spacesyncproto/mock_spacesyncproto.go github.com/anytypeio/any-sync/commonspace/spacesyncproto DRPCSpaceSyncClient +//go:generate mockgen -destination mock_spacesyncproto/mock_spacesyncproto.go github.com/anyproto/any-sync/commonspace/spacesyncproto DRPCSpaceSyncClient package spacesyncproto import ( diff --git a/commonspace/spaceutils_test.go b/commonspace/spaceutils_test.go index 62371bbd..10140622 100644 --- a/commonspace/spaceutils_test.go +++ b/commonspace/spaceutils_test.go @@ -3,20 +3,20 @@ package commonspace import ( "context" "fmt" - accountService "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/ocache" - "github.com/anytypeio/any-sync/commonspace/credentialprovider" - "github.com/anytypeio/any-sync/commonspace/object/tree/objecttree" - "github.com/anytypeio/any-sync/commonspace/object/treemanager" - "github.com/anytypeio/any-sync/commonspace/peermanager" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/commonspace/spacesyncproto" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/pool" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/testutil/accounttest" - "github.com/anytypeio/go-chash" + accountService "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/ocache" + "github.com/anyproto/any-sync/commonspace/credentialprovider" + "github.com/anyproto/any-sync/commonspace/object/tree/objecttree" + "github.com/anyproto/any-sync/commonspace/object/treemanager" + "github.com/anyproto/any-sync/commonspace/peermanager" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/commonspace/spacesyncproto" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/pool" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/testutil/accounttest" + "github.com/anyproto/go-chash" "github.com/stretchr/testify/require" "testing" "time" diff --git a/commonspace/syncstatus/syncstatus.go b/commonspace/syncstatus/syncstatus.go index e9c99275..91191573 100644 --- a/commonspace/syncstatus/syncstatus.go +++ b/commonspace/syncstatus/syncstatus.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/tree/treestorage" - "github.com/anytypeio/any-sync/commonspace/spacestorage" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/util/periodicsync" - "github.com/anytypeio/any-sync/util/slice" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" + "github.com/anyproto/any-sync/commonspace/spacestorage" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/util/periodicsync" + "github.com/anyproto/any-sync/util/slice" "golang.org/x/exp/slices" ) diff --git a/coordinator/coordinatorclient/coordinatorclient.go b/coordinator/coordinatorclient/coordinatorclient.go index 5dc58c64..4847ade7 100644 --- a/coordinator/coordinatorclient/coordinatorclient.go +++ b/coordinator/coordinatorclient/coordinatorclient.go @@ -1,15 +1,15 @@ -//go:generate mockgen -destination mock_coordinatorclient/mock_coordinatorclient.go github.com/anytypeio/any-sync/coordinator/coordinatorclient CoordinatorClient +//go:generate mockgen -destination mock_coordinatorclient/mock_coordinatorclient.go github.com/anyproto/any-sync/coordinator/coordinatorclient CoordinatorClient package coordinatorclient import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - "github.com/anytypeio/any-sync/coordinator/coordinatorproto" - "github.com/anytypeio/any-sync/net/pool" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + "github.com/anyproto/any-sync/coordinator/coordinatorproto" + "github.com/anyproto/any-sync/net/pool" + "github.com/anyproto/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/util/crypto" ) const CName = "common.coordinator.coordinatorclient" diff --git a/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go b/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go index 1dee3da3..d2d83159 100644 --- a/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go +++ b/coordinator/coordinatorclient/mock_coordinatorclient/mock_coordinatorclient.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/coordinator/coordinatorclient (interfaces: CoordinatorClient) +// Source: github.com/anyproto/any-sync/coordinator/coordinatorclient (interfaces: CoordinatorClient) // Package mock_coordinatorclient is a generated GoMock package. package mock_coordinatorclient @@ -8,10 +8,10 @@ import ( context "context" reflect "reflect" - app "github.com/anytypeio/any-sync/app" - treechangeproto "github.com/anytypeio/any-sync/commonspace/object/tree/treechangeproto" - coordinatorclient "github.com/anytypeio/any-sync/coordinator/coordinatorclient" - coordinatorproto "github.com/anytypeio/any-sync/coordinator/coordinatorproto" + app "github.com/anyproto/any-sync/app" + treechangeproto "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" + coordinatorclient "github.com/anyproto/any-sync/coordinator/coordinatorclient" + coordinatorproto "github.com/anyproto/any-sync/coordinator/coordinatorproto" gomock "github.com/golang/mock/gomock" ) diff --git a/coordinator/coordinatorproto/errors.go b/coordinator/coordinatorproto/errors.go index 1fb41a2c..08494a23 100644 --- a/coordinator/coordinatorproto/errors.go +++ b/coordinator/coordinatorproto/errors.go @@ -2,7 +2,7 @@ package coordinatorproto import ( "errors" - "github.com/anytypeio/any-sync/net/rpc/rpcerr" + "github.com/anyproto/any-sync/net/rpc/rpcerr" ) var ( diff --git a/coordinator/coordinatorproto/receipt.go b/coordinator/coordinatorproto/receipt.go index d011038f..fd736e9d 100644 --- a/coordinator/coordinatorproto/receipt.go +++ b/coordinator/coordinatorproto/receipt.go @@ -3,8 +3,8 @@ package coordinatorproto import ( "bytes" "errors" - "github.com/anytypeio/any-sync/util/crypto" - "github.com/anytypeio/any-sync/util/strkey" + "github.com/anyproto/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/strkey" "github.com/gogo/protobuf/proto" "time" ) diff --git a/coordinator/coordinatorproto/receipt_test.go b/coordinator/coordinatorproto/receipt_test.go index 28bd9dc3..0567fb8d 100644 --- a/coordinator/coordinatorproto/receipt_test.go +++ b/coordinator/coordinatorproto/receipt_test.go @@ -3,7 +3,7 @@ package coordinatorproto import ( "context" "crypto/rand" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" "testing" diff --git a/coordinator/nodeconfsource/nodeconfsource.go b/coordinator/nodeconfsource/nodeconfsource.go index f66dcafb..ce275e1d 100644 --- a/coordinator/nodeconfsource/nodeconfsource.go +++ b/coordinator/nodeconfsource/nodeconfsource.go @@ -2,10 +2,10 @@ package nodeconfsource import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/coordinator/coordinatorclient" - "github.com/anytypeio/any-sync/coordinator/coordinatorproto" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/coordinator/coordinatorclient" + "github.com/anyproto/any-sync/coordinator/coordinatorproto" + "github.com/anyproto/any-sync/nodeconf" "time" ) diff --git a/go.mod b/go.mod index 8e0af5d3..e7226197 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,12 @@ -module github.com/anytypeio/any-sync +module github.com/anyproto/any-sync go 1.19 require ( filippo.io/edwards25519 v1.0.0 - github.com/anytypeio/go-chash v0.1.0 - github.com/anytypeio/go-slip10 v0.0.0-20200330112030-a352ca8495e4 - github.com/anytypeio/go-slip21 v0.0.0-20200218204727-e2e51e20ab51 + github.com/anyproto/go-chash v0.1.0 + github.com/anyproto/go-slip10 v0.0.0-20200330112030-a352ca8495e4 + github.com/anyproto/go-slip21 v0.0.0-20200218204727-e2e51e20ab51 github.com/cespare/xxhash v1.1.0 github.com/cheggaaa/mb/v3 v3.0.1 github.com/gobwas/glob v0.2.3 diff --git a/go.sum b/go.sum index d9a43e64..ba4fb2c4 100644 --- a/go.sum +++ b/go.sum @@ -5,12 +5,12 @@ github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/anytypeio/go-chash v0.1.0 h1:nYCMh13SEai/7cXRUoKfU27uASj7XEF6NhvY6hFMKY8= -github.com/anytypeio/go-chash v0.1.0/go.mod h1:Q7XiggkMrThRFAwYSItzLOT9OPC8a497SLZtgmJtC/I= -github.com/anytypeio/go-slip10 v0.0.0-20200330112030-a352ca8495e4 h1:jB5Ke7NVoW52i65PtLFBr5Q5k6RskIY8L70pgnBcnWo= -github.com/anytypeio/go-slip10 v0.0.0-20200330112030-a352ca8495e4/go.mod h1:/8GIEJBE5wmdgcE49JPdupnHNUf7bEn6C+aArfWqvw8= -github.com/anytypeio/go-slip21 v0.0.0-20200218204727-e2e51e20ab51 h1:3Y+18zBC8LZgcL3l2dgoTEIzIUzCZa/kN0UV3ZWpbuA= -github.com/anytypeio/go-slip21 v0.0.0-20200218204727-e2e51e20ab51/go.mod h1:SoKy+W8Mf6v7XBV30xFWkIFMs7UnXwsNGrGV12yVkEs= +github.com/anyproto/go-chash v0.1.0 h1:nYCMh13SEai/7cXRUoKfU27uASj7XEF6NhvY6hFMKY8= +github.com/anyproto/go-chash v0.1.0/go.mod h1:Q7XiggkMrThRFAwYSItzLOT9OPC8a497SLZtgmJtC/I= +github.com/anyproto/go-slip10 v0.0.0-20200330112030-a352ca8495e4 h1:jB5Ke7NVoW52i65PtLFBr5Q5k6RskIY8L70pgnBcnWo= +github.com/anyproto/go-slip10 v0.0.0-20200330112030-a352ca8495e4/go.mod h1:/8GIEJBE5wmdgcE49JPdupnHNUf7bEn6C+aArfWqvw8= +github.com/anyproto/go-slip21 v0.0.0-20200218204727-e2e51e20ab51 h1:3Y+18zBC8LZgcL3l2dgoTEIzIUzCZa/kN0UV3ZWpbuA= +github.com/anyproto/go-slip21 v0.0.0-20200218204727-e2e51e20ab51/go.mod h1:SoKy+W8Mf6v7XBV30xFWkIFMs7UnXwsNGrGV12yVkEs= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.1 h1:Heo0FGXzOxUHquZbraxt+tT7UXVDhesUQH5ISbsOkCQ= github.com/benbjohnson/clock v1.3.1/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= diff --git a/metric/log.go b/metric/log.go index edb63249..e854a82a 100644 --- a/metric/log.go +++ b/metric/log.go @@ -2,7 +2,7 @@ package metric import ( "context" - "github.com/anytypeio/any-sync/net/peer" + "github.com/anyproto/any-sync/net/peer" "go.uber.org/zap" "time" ) diff --git a/metric/log_test.go b/metric/log_test.go index e22a7112..9a6759b0 100644 --- a/metric/log_test.go +++ b/metric/log_test.go @@ -2,7 +2,7 @@ package metric import ( "context" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "go.uber.org/zap" "testing" ) diff --git a/metric/metric.go b/metric/metric.go index aeac0550..00371a3f 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -2,8 +2,8 @@ package metric import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/metric/version.go b/metric/version.go index 19a93a12..2f127332 100644 --- a/metric/version.go +++ b/metric/version.go @@ -1,7 +1,7 @@ package metric import ( - "github.com/anytypeio/any-sync/app" + "github.com/anyproto/any-sync/app" "github.com/prometheus/client_golang/prometheus" ) diff --git a/net/dialer/dialer.go b/net/dialer/dialer.go index 1992e6e5..8d49c4a9 100644 --- a/net/dialer/dialer.go +++ b/net/dialer/dialer.go @@ -4,14 +4,14 @@ import ( "context" "errors" "fmt" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - net2 "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/net/timeoutconn" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + net2 "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/net/timeoutconn" + "github.com/anyproto/any-sync/nodeconf" "github.com/libp2p/go-libp2p/core/sec" "go.uber.org/zap" "net" diff --git a/net/peer/context.go b/net/peer/context.go index b753e7d2..ada3bab2 100644 --- a/net/peer/context.go +++ b/net/peer/context.go @@ -3,7 +3,7 @@ package peer import ( "context" "errors" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/util/crypto" "github.com/libp2p/go-libp2p/core/sec" "storj.io/drpc/drpcctx" ) diff --git a/net/peer/peer.go b/net/peer/peer.go index 95ac2b12..99304ebe 100644 --- a/net/peer/peer.go +++ b/net/peer/peer.go @@ -5,7 +5,7 @@ import ( "sync/atomic" "time" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "github.com/libp2p/go-libp2p/core/sec" "go.uber.org/zap" "storj.io/drpc" diff --git a/net/pool/pool.go b/net/pool/pool.go index 81698e5a..b6c0d7df 100644 --- a/net/pool/pool.go +++ b/net/pool/pool.go @@ -2,11 +2,11 @@ package pool import ( "context" - "github.com/anytypeio/any-sync/app/ocache" - "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/dialer" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/app/ocache" + "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/dialer" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice/handshake" "go.uber.org/zap" "math/rand" ) diff --git a/net/pool/pool_test.go b/net/pool/pool_test.go index 40d33cfa..c82533e8 100644 --- a/net/pool/pool_test.go +++ b/net/pool/pool_test.go @@ -4,11 +4,11 @@ import ( "context" "errors" "fmt" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/dialer" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/dialer" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice/handshake" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "storj.io/drpc" diff --git a/net/pool/poolservice.go b/net/pool/poolservice.go index dea7c0b6..9b69ae24 100644 --- a/net/pool/poolservice.go +++ b/net/pool/poolservice.go @@ -2,11 +2,11 @@ package pool import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/app/ocache" - "github.com/anytypeio/any-sync/metric" - "github.com/anytypeio/any-sync/net/dialer" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/app/ocache" + "github.com/anyproto/any-sync/metric" + "github.com/anyproto/any-sync/net/dialer" "github.com/prometheus/client_golang/prometheus" "time" ) diff --git a/net/rpc/rpctest/pool.go b/net/rpc/rpctest/pool.go index 3a9935df..a22a88cc 100644 --- a/net/rpc/rpctest/pool.go +++ b/net/rpc/rpctest/pool.go @@ -3,9 +3,9 @@ package rpctest import ( "context" "errors" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/pool" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/pool" "math/rand" "storj.io/drpc" "sync" diff --git a/net/rpc/rpctest/server.go b/net/rpc/rpctest/server.go index 5efc596a..4731a8e2 100644 --- a/net/rpc/rpctest/server.go +++ b/net/rpc/rpctest/server.go @@ -2,8 +2,8 @@ package rpctest import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/net/rpc/server" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/net/rpc/server" "net" "storj.io/drpc" "storj.io/drpc/drpcconn" diff --git a/net/rpc/server/baseserver.go b/net/rpc/server/baseserver.go index 91fca952..cb3047ed 100644 --- a/net/rpc/server/baseserver.go +++ b/net/rpc/server/baseserver.go @@ -2,8 +2,8 @@ package server import ( "context" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice" "github.com/libp2p/go-libp2p/core/sec" "github.com/zeebo/errs" "go.uber.org/zap" diff --git a/net/rpc/server/drpcserver.go b/net/rpc/server/drpcserver.go index e97ea0d3..1874d16a 100644 --- a/net/rpc/server/drpcserver.go +++ b/net/rpc/server/drpcserver.go @@ -2,11 +2,11 @@ package server import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/metric" - anyNet "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/secureservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/metric" + anyNet "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/secureservice" "github.com/libp2p/go-libp2p/core/sec" "net" "storj.io/drpc" diff --git a/net/secureservice/credential.go b/net/secureservice/credential.go index b754b450..5e97e8fc 100644 --- a/net/secureservice/credential.go +++ b/net/secureservice/credential.go @@ -1,10 +1,10 @@ package secureservice import ( - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/net/secureservice/handshake/handshakeproto" - "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/net/secureservice/handshake/handshakeproto" + "github.com/anyproto/any-sync/util/crypto" "github.com/libp2p/go-libp2p/core/sec" "go.uber.org/zap" ) diff --git a/net/secureservice/credential_test.go b/net/secureservice/credential_test.go index c3ae8338..e64e173a 100644 --- a/net/secureservice/credential_test.go +++ b/net/secureservice/credential_test.go @@ -1,9 +1,9 @@ package secureservice import ( - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/testutil/accounttest" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/testutil/accounttest" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" "github.com/libp2p/go-libp2p/core/peer" diff --git a/net/secureservice/handshake/handshake.go b/net/secureservice/handshake/handshake.go index 24cc84a8..04a9de72 100644 --- a/net/secureservice/handshake/handshake.go +++ b/net/secureservice/handshake/handshake.go @@ -4,7 +4,7 @@ import ( "context" "encoding/binary" "errors" - "github.com/anytypeio/any-sync/net/secureservice/handshake/handshakeproto" + "github.com/anyproto/any-sync/net/secureservice/handshake/handshakeproto" "github.com/libp2p/go-libp2p/core/sec" "golang.org/x/exp/slices" "io" diff --git a/net/secureservice/handshake/handshake_test.go b/net/secureservice/handshake/handshake_test.go index d548e9a0..0d8b16d7 100644 --- a/net/secureservice/handshake/handshake_test.go +++ b/net/secureservice/handshake/handshake_test.go @@ -2,8 +2,8 @@ package handshake import ( "context" - "github.com/anytypeio/any-sync/net/secureservice/handshake/handshakeproto" - crypto2 "github.com/anytypeio/any-sync/util/crypto" + "github.com/anyproto/any-sync/net/secureservice/handshake/handshakeproto" + crypto2 "github.com/anyproto/any-sync/util/crypto" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" "github.com/libp2p/go-libp2p/core/peer" diff --git a/net/secureservice/secureservice.go b/net/secureservice/secureservice.go index a98e332b..d7d86040 100644 --- a/net/secureservice/secureservice.go +++ b/net/secureservice/secureservice.go @@ -2,13 +2,13 @@ package secureservice import ( "context" - commonaccount "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/nodeconf" + commonaccount "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/nodeconf" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/sec" libp2ptls "github.com/libp2p/go-libp2p/p2p/security/tls" diff --git a/net/secureservice/secureservice_test.go b/net/secureservice/secureservice_test.go index c60effab..2f435a65 100644 --- a/net/secureservice/secureservice_test.go +++ b/net/secureservice/secureservice_test.go @@ -2,13 +2,13 @@ package secureservice import ( "context" - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/nodeconf/mock_nodeconf" - "github.com/anytypeio/any-sync/testutil/testnodeconf" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/nodeconf/mock_nodeconf" + "github.com/anyproto/any-sync/testutil/testnodeconf" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/net/streampool/context.go b/net/streampool/context.go index 72203db3..724c172f 100644 --- a/net/streampool/context.go +++ b/net/streampool/context.go @@ -2,7 +2,7 @@ package streampool import ( "context" - "github.com/anytypeio/any-sync/net/peer" + "github.com/anyproto/any-sync/net/peer" ) type streamCtxKey uint diff --git a/net/streampool/encoding_test.go b/net/streampool/encoding_test.go index a61d0219..9bcf4579 100644 --- a/net/streampool/encoding_test.go +++ b/net/streampool/encoding_test.go @@ -1,7 +1,7 @@ package streampool import ( - "github.com/anytypeio/any-sync/net/streampool/testservice" + "github.com/anyproto/any-sync/net/streampool/testservice" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" diff --git a/net/streampool/stream.go b/net/streampool/stream.go index 141d433c..5dff0cb9 100644 --- a/net/streampool/stream.go +++ b/net/streampool/stream.go @@ -2,8 +2,8 @@ package streampool import ( "context" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/util/multiqueue" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/util/multiqueue" "go.uber.org/zap" "storj.io/drpc" "sync/atomic" diff --git a/net/streampool/streampool.go b/net/streampool/streampool.go index 42e3a0cb..7384b845 100644 --- a/net/streampool/streampool.go +++ b/net/streampool/streampool.go @@ -2,9 +2,9 @@ package streampool import ( "fmt" - "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/util/multiqueue" + "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/util/multiqueue" "go.uber.org/zap" "golang.org/x/exp/slices" "golang.org/x/net/context" diff --git a/net/streampool/streampool_test.go b/net/streampool/streampool_test.go index 8facd481..75d51059 100644 --- a/net/streampool/streampool_test.go +++ b/net/streampool/streampool_test.go @@ -2,9 +2,9 @@ package streampool import ( "fmt" - "github.com/anytypeio/any-sync/net/peer" - "github.com/anytypeio/any-sync/net/rpc/rpctest" - "github.com/anytypeio/any-sync/net/streampool/testservice" + "github.com/anyproto/any-sync/net/peer" + "github.com/anyproto/any-sync/net/rpc/rpctest" + "github.com/anyproto/any-sync/net/streampool/testservice" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "golang.org/x/net/context" diff --git a/net/streampool/streampoolservice.go b/net/streampool/streampoolservice.go index eca11221..30cc44e0 100644 --- a/net/streampool/streampoolservice.go +++ b/net/streampool/streampoolservice.go @@ -1,9 +1,9 @@ package streampool import ( - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/metric" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/metric" ) const CName = "common.net.streampool" diff --git a/net/timeoutconn/conn.go b/net/timeoutconn/conn.go index 28d13495..11e80709 100644 --- a/net/timeoutconn/conn.go +++ b/net/timeoutconn/conn.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "go.uber.org/zap" ) diff --git a/nodeconf/mock_nodeconf/mock_nodeconf.go b/nodeconf/mock_nodeconf/mock_nodeconf.go index dc261709..353bf921 100644 --- a/nodeconf/mock_nodeconf/mock_nodeconf.go +++ b/nodeconf/mock_nodeconf/mock_nodeconf.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/nodeconf (interfaces: Service) +// Source: github.com/anyproto/any-sync/nodeconf (interfaces: Service) // Package mock_nodeconf is a generated GoMock package. package mock_nodeconf @@ -8,9 +8,9 @@ import ( context "context" reflect "reflect" - app "github.com/anytypeio/any-sync/app" - nodeconf "github.com/anytypeio/any-sync/nodeconf" - chash "github.com/anytypeio/go-chash" + app "github.com/anyproto/any-sync/app" + nodeconf "github.com/anyproto/any-sync/nodeconf" + chash "github.com/anyproto/go-chash" gomock "github.com/golang/mock/gomock" ) diff --git a/nodeconf/nodeconf.go b/nodeconf/nodeconf.go index c49893d5..444f9f67 100644 --- a/nodeconf/nodeconf.go +++ b/nodeconf/nodeconf.go @@ -1,7 +1,7 @@ package nodeconf import ( - "github.com/anytypeio/go-chash" + "github.com/anyproto/go-chash" "strings" ) diff --git a/nodeconf/nodeconf_test.go b/nodeconf/nodeconf_test.go index 3d73af80..6c614bbf 100644 --- a/nodeconf/nodeconf_test.go +++ b/nodeconf/nodeconf_test.go @@ -2,7 +2,7 @@ package nodeconf import ( "fmt" - "github.com/anytypeio/go-chash" + "github.com/anyproto/go-chash" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "math/rand" diff --git a/nodeconf/nodeconfstore/nodeconfstore.go b/nodeconf/nodeconfstore/nodeconfstore.go index 2033ffca..98004931 100644 --- a/nodeconf/nodeconfstore/nodeconfstore.go +++ b/nodeconf/nodeconfstore/nodeconfstore.go @@ -2,8 +2,8 @@ package nodeconfstore import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/nodeconf" "gopkg.in/yaml.v3" "os" "path/filepath" diff --git a/nodeconf/nodeconfstore/nodeconfstore_test.go b/nodeconf/nodeconfstore/nodeconfstore_test.go index cb4d5202..ecb9114f 100644 --- a/nodeconf/nodeconfstore/nodeconfstore_test.go +++ b/nodeconf/nodeconfstore/nodeconfstore_test.go @@ -2,8 +2,8 @@ package nodeconfstore import ( "context" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/nodeconf" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/nodeconf" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "os" diff --git a/nodeconf/service.go b/nodeconf/service.go index be8b5dc6..db6ba1ed 100644 --- a/nodeconf/service.go +++ b/nodeconf/service.go @@ -1,15 +1,15 @@ -//go:generate mockgen -destination mock_nodeconf/mock_nodeconf.go github.com/anytypeio/any-sync/nodeconf Service +//go:generate mockgen -destination mock_nodeconf/mock_nodeconf.go github.com/anyproto/any-sync/nodeconf Service package nodeconf import ( "context" - commonaccount "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/app/logger" - "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/util/periodicsync" - "github.com/anytypeio/go-chash" + commonaccount "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/app/logger" + "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/util/periodicsync" + "github.com/anyproto/go-chash" "go.uber.org/zap" "sync" ) diff --git a/nodeconf/service_test.go b/nodeconf/service_test.go index 5ed8154c..726fa5ce 100644 --- a/nodeconf/service_test.go +++ b/nodeconf/service_test.go @@ -3,10 +3,10 @@ package nodeconf import ( "context" "errors" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/net" - "github.com/anytypeio/any-sync/net/secureservice/handshake" - "github.com/anytypeio/any-sync/testutil/accounttest" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/net" + "github.com/anyproto/any-sync/net/secureservice/handshake" + "github.com/anyproto/any-sync/testutil/accounttest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "sync" diff --git a/testutil/accounttest/accountservice.go b/testutil/accounttest/accountservice.go index 610f640b..c5caa4cd 100644 --- a/testutil/accounttest/accountservice.go +++ b/testutil/accounttest/accountservice.go @@ -1,10 +1,10 @@ package accounttest import ( - accountService "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/commonspace/object/accountdata" - "github.com/anytypeio/any-sync/util/crypto" + accountService "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/commonspace/object/accountdata" + "github.com/anyproto/any-sync/util/crypto" ) // AccountTestService provides service for test purposes, generates new random account every Init diff --git a/testutil/testnodeconf/testnodeconf.go b/testutil/testnodeconf/testnodeconf.go index a0188369..fdbdbf1c 100644 --- a/testutil/testnodeconf/testnodeconf.go +++ b/testutil/testnodeconf/testnodeconf.go @@ -1,10 +1,10 @@ package testnodeconf import ( - "github.com/anytypeio/any-sync/accountservice" - "github.com/anytypeio/any-sync/app" - "github.com/anytypeio/any-sync/nodeconf" - "github.com/anytypeio/any-sync/testutil/accounttest" + "github.com/anyproto/any-sync/accountservice" + "github.com/anyproto/any-sync/app" + "github.com/anyproto/any-sync/nodeconf" + "github.com/anyproto/any-sync/testutil/accounttest" ) func GenNodeConfig(num int) (conf *Config) { diff --git a/util/crypto/decode.go b/util/crypto/decode.go index 91535849..ce6c58e2 100644 --- a/util/crypto/decode.go +++ b/util/crypto/decode.go @@ -2,7 +2,7 @@ package crypto import ( "encoding/base64" - "github.com/anytypeio/any-sync/util/strkey" + "github.com/anyproto/any-sync/util/strkey" "github.com/libp2p/go-libp2p/core/peer" ) diff --git a/util/crypto/derived.go b/util/crypto/derived.go index 5821ea5f..0318b17a 100644 --- a/util/crypto/derived.go +++ b/util/crypto/derived.go @@ -1,7 +1,7 @@ package crypto import ( - "github.com/anytypeio/go-slip21" + "github.com/anyproto/go-slip21" ) const ( diff --git a/util/crypto/ed25519.go b/util/crypto/ed25519.go index 50b34161..fc448731 100644 --- a/util/crypto/ed25519.go +++ b/util/crypto/ed25519.go @@ -7,8 +7,8 @@ import ( "crypto/subtle" "errors" "fmt" - "github.com/anytypeio/any-sync/util/crypto/cryptoproto" - "github.com/anytypeio/any-sync/util/strkey" + "github.com/anyproto/any-sync/util/crypto/cryptoproto" + "github.com/anyproto/any-sync/util/strkey" "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" "io" diff --git a/util/crypto/mnemonic.go b/util/crypto/mnemonic.go index f70b911b..c8f146de 100644 --- a/util/crypto/mnemonic.go +++ b/util/crypto/mnemonic.go @@ -3,7 +3,7 @@ package crypto import ( "bytes" "errors" - "github.com/anytypeio/go-slip10" + "github.com/anyproto/go-slip10" "github.com/tyler-smith/go-bip39" ) diff --git a/util/crypto/mnemonic_test.go b/util/crypto/mnemonic_test.go index ae4e86bb..3edeb5e6 100644 --- a/util/crypto/mnemonic_test.go +++ b/util/crypto/mnemonic_test.go @@ -2,7 +2,7 @@ package crypto import ( "crypto/rand" - "github.com/anytypeio/go-slip10" + "github.com/anyproto/go-slip10" "github.com/stretchr/testify/require" "strings" "testing" diff --git a/util/periodicsync/mock_periodicsync/mock_periodicsync.go b/util/periodicsync/mock_periodicsync/mock_periodicsync.go index 356b063e..d34d6162 100644 --- a/util/periodicsync/mock_periodicsync/mock_periodicsync.go +++ b/util/periodicsync/mock_periodicsync/mock_periodicsync.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/anytypeio/any-sync/util/periodicsync (interfaces: PeriodicSync) +// Source: github.com/anyproto/any-sync/util/periodicsync (interfaces: PeriodicSync) // Package mock_periodicsync is a generated GoMock package. package mock_periodicsync diff --git a/util/periodicsync/periodicsync.go b/util/periodicsync/periodicsync.go index 8838faad..b1969f63 100644 --- a/util/periodicsync/periodicsync.go +++ b/util/periodicsync/periodicsync.go @@ -1,9 +1,9 @@ -//go:generate mockgen -destination mock_periodicsync/mock_periodicsync.go github.com/anytypeio/any-sync/util/periodicsync PeriodicSync +//go:generate mockgen -destination mock_periodicsync/mock_periodicsync.go github.com/anyproto/any-sync/util/periodicsync PeriodicSync package periodicsync import ( "context" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "go.uber.org/zap" "time" ) diff --git a/util/periodicsync/periodicsync_test.go b/util/periodicsync/periodicsync_test.go index fa1c091d..35dd848c 100644 --- a/util/periodicsync/periodicsync_test.go +++ b/util/periodicsync/periodicsync_test.go @@ -2,7 +2,7 @@ package periodicsync import ( "context" - "github.com/anytypeio/any-sync/app/logger" + "github.com/anyproto/any-sync/app/logger" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "testing" diff --git a/util/strkey/strkey.go b/util/strkey/strkey.go index c6dcfc3b..ac90e701 100644 --- a/util/strkey/strkey.go +++ b/util/strkey/strkey.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" "fmt" - "github.com/anytypeio/any-sync/util/crc16" + "github.com/anyproto/any-sync/util/crc16" "github.com/mr-tron/base58/base58" )