1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 01:51:07 +09:00

Update any-sync to include encryption changes

This commit is contained in:
mcrakhman 2023-04-25 18:17:59 +02:00 committed by Mikhail Iudin
parent 3f43475239
commit 6e8a5e2438
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
3 changed files with 5 additions and 2 deletions

2
go.mod
View file

@ -7,7 +7,7 @@ require (
github.com/PuerkitoBio/goquery v1.8.1
github.com/VividCortex/ewma v1.2.0
github.com/adrium/goheif v0.0.0-20230113233934-ca402e77a786
github.com/anytypeio/any-sync v0.0.28-0.20230327202849-f4bc677d020b
github.com/anytypeio/any-sync v0.0.28-0.20230327210302-13f30aa60f7f
github.com/anytypeio/go-naturaldate/v2 v2.0.1
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de
github.com/blevesearch/bleve/v2 v2.3.6

2
go.sum
View file

@ -65,6 +65,8 @@ github.com/anytypeio/any-sync v0.0.28-0.20230327200807-6d70bc37866e h1:+AQ4E9V7R
github.com/anytypeio/any-sync v0.0.28-0.20230327200807-6d70bc37866e/go.mod h1:uTnp2CTKxOh8A/Z/CWhusKCLgaoXUAIwHj3qAjcXc4A=
github.com/anytypeio/any-sync v0.0.28-0.20230327202849-f4bc677d020b h1:sVXadqaox2Ex9wjhoNSq76IIk6WVocSmZMyFD8CPno8=
github.com/anytypeio/any-sync v0.0.28-0.20230327202849-f4bc677d020b/go.mod h1:uTnp2CTKxOh8A/Z/CWhusKCLgaoXUAIwHj3qAjcXc4A=
github.com/anytypeio/any-sync v0.0.28-0.20230327210302-13f30aa60f7f h1:xA4kaQoY0UWbkhbcVwRPTdoY6eWzVXBZpX3KalZQhLE=
github.com/anytypeio/any-sync v0.0.28-0.20230327210302-13f30aa60f7f/go.mod h1:uTnp2CTKxOh8A/Z/CWhusKCLgaoXUAIwHj3qAjcXc4A=
github.com/anytypeio/go-chash v0.0.2 h1:BSpyMC3HXNkf2eosQrHM4svov0DrvxL9tb4gnHbdmbA=
github.com/anytypeio/go-chash v0.0.2/go.mod h1:G+R6q7jYgNa52NqcRhnNm28pogfWW+cuHtgBktrc2QA=
github.com/anytypeio/go-ds-badger3 v0.3.1-0.20221103102622-3233d4e13cb8 h1:LC9w0M0SbA5VuZeBtUdq+uR4mdjbJhxurNtovmRiOrU=

View file

@ -29,7 +29,8 @@ func WalletInitRepo(rootPath string, pk crypto.PrivKey) error {
if err != nil {
return err
}
repoPath := filepath.Join(rootPath, pk.GetPublic().Account())
address := pk.GetPublic().Account()
repoPath := filepath.Join(rootPath, address)
_, err = os.Stat(repoPath)
if !os.IsNotExist(err) {
return ErrRepoExists