Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 19 06:12
    tobowers commented #80
  • Sep 19 00:48

    brandonwestcott on master

    Added hook to create git hook f… Added dud file to fix issue wit… Added instructions for publishi… and 6 more (compare)

  • Sep 19 00:48
    brandonwestcott closed #80
  • Sep 18 17:43
    littlezigy synchronize #80
  • Sep 18 17:40
    littlezigy synchronize #80
  • Sep 18 17:34
    littlezigy synchronize #80
  • Sep 18 17:33

    brandonwestcott on faq-add-readme

    (compare)

  • Sep 18 17:33

    brandonwestcott on shared-ownership

    (compare)

  • Sep 18 17:33

    brandonwestcott on other

    (compare)

  • Sep 18 17:33

    brandonwestcott on dg-pages

    (compare)

  • Sep 18 17:03

    brandonwestcott on dg-pages

    Added hook to create git hook f… Added dud file to fix issue wit… Added instructions for publishi… and 2 more (compare)

  • Sep 18 08:28
    littlezigy synchronize #80
  • Sep 10 22:41
    c-nv-s commented #80
  • Sep 03 09:00
    tobowers commented #80
  • Sep 02 07:45
    tobowers commented #80
  • Sep 02 07:43
    tobowers commented #80
  • Sep 02 07:42
    tobowers commented #80
  • Sep 01 22:59
    bqv commented #80
  • Sep 01 08:14
    littlezigy opened #80
  • Aug 04 20:01

    icarusz on master

    correct gd to dg Merge pull request #79 from meh… (compare)

asteriogonzalez
@asteriogonzalez

I think neither, I not sure: what do you exactly are asking for:

In the 2nd host I just simply did:

git clone dgit://asterio/kk git clone dgit://asterio/kk cd kk/ touch nuevo git add nuevo ; git commit -m "adaasda" ; git push 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 nuevo To dgit://asterio/kk ! [remote rejected] master -> master (error creating NewAddBlockRequest: error processing block (valid: false): <nil>)

Maybe I am missing something, not really familiar with user permissions, sorry.

But I can push changes in a 3rd cloned repo in the same host as 1st repo, but not from 2nd host/repo
Brandon Westcott
@brandonwestcott
got it, thanks
asteriogonzalez
@asteriogonzalez
Thanks to you
Brandon Westcott
@brandonwestcott
your second host needs a user
you can create that / import that in two ways:
i would suggest git config --global decentragit.username :)
asteriogonzalez
@asteriogonzalez

I did already this in the 1 repo:

git config --global decentragit.username agp

Brandon Westcott
@brandonwestcott
ok great
then you’ll need to run git dg init again inside that repo
and this is good feedback, thanks - we hadn’t experienced cases where a user hadn’t created a repo yet on a machine when attempting to use dgit
asteriogonzalez
@asteriogonzalez
great, it's nice to be useful :)
Brandon Westcott
@brandonwestcott
and to clarify, the git dg init should be ran on the second host
and when it asks What decentragit username would you like to use?
enter agp
then it will ask for your recovery phrase
you can also create a new username for that 2nd host
then on the 1st host, you will be able to do git dg team add with that new username from the second host
asteriogonzalez
@asteriogonzalez
ok
asteriogonzalez
@asteriogonzalez

@brandonwestcott : Thanks for your tips. I have made advances and successfully set the user in the 2nd host using recovery pass-phrase, I've checked that the users have been imported in the gnome keyring, but unfortunately get the same error.

Now I need to leave, but If you don't mind I will create a recipe tomorrow with the initial setup in both hosts and the steps in each one in order to clarify the issue. I guess someone else will stuck in the same issue and dgit looks very promising, so may this help in the relevance of the project.

Thanks for you time.

Brandon Westcott
@brandonwestcott
awesome thanks for trying it out
we’ll be around tomorrow too so feel free to ping
also if you don’t mind, while running please enable env DG_LOG_LEVEL=debug for easier troubleshooting
asteriogonzalez
@asteriogonzalez

agp@debian1:~$ # create a demo repository
agp@debian1:~$ mkdir test20200510 ; cd test20200510
agp@debian1:~/test20200510$ git init
Initialized empty Git repository in /home/agp/test20200510/.git/
agp@debian1:~/test20200510$ git config --global user.email "agp@debian1.example.com"
agp@debian1:~/test20200510$ git config --global user.name "agp_1"
agp@debian1:~/test20200510$ git add *; git commit -m "commit"
[master (root-commit) d335bad] commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md

agp@debian1:~$ # blessing repository with DGIT
agp@debian1:~/test20200510$ export DG_LOG_LEVEL=debug
agp@debian1:~/test20200510$ git config --global decentragit.username agp@debian1
agp@debian1:~/test20200510$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/agp/.ssh/id_rsa):
/home/agp/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/agp/.ssh/id_rsa.
Your public key has been saved in /home/agp/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:Ohaw2H+Gke8TTvbPsUrDVNYq9ZoE0HqUCMX60O91trY agp@debian1
The key's randomart image is:
+---[RSA 2048]----+
| .+oo . |
| o.+ . |
| . o o. + . |
| o oo.o .= o |
| . o +oSoo o . |
| . =o.o.oo |
|
++++.+o . |
| . =o.oo oo |
| ...o+.E. |
+----[SHA256]-----+

agp@debian1:~$ # init DGIT in repo
agp@debian1:~/test20200510$ git dg init
2020-05-11T02:23:28.996+0200 INFO decentragit.cmd cmd/root.go:33 decentragit version: 7e53001
2020-05-11T02:23:28.997+0200 INFO decentragit.cmd cmd/root.go:34 goos: linux
2020-05-11T02:23:28.997+0200 INFO decentragit.cmd cmd/root.go:35 goarch: amd64
2020-05-11T02:23:30.232+0200 INFO decentragit.keyring keyring/keyring.go:51 keyring provider: libsecret
What decentragit username would you like to use? █gp@debian1

2020-05-11T02:23:34.887+0200 DEBUG decentragit.keyring keyring/keyring.go:69 finding private key agp@debian1
What is your full repo name? agp█test20200510

2020-05-11T02:23:52.534+0200 DEBUG decentragit.repotree repotree/repotree.go:43 looking for repo agp/test20200510
2020-05-11T02:23:52.544+0200 DEBUG decentragit.repotree repotree/repotree.go:52 user chaintree found for agp - did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19
2020-05-11T02:23:52.547+0200 DEBUG decentragit.initializer initializer/initializer.go:344 creating new repo tree with endpoint dg://agp/test20200510 and auth 0x087B1dB3Ed1233b408c4806CA03A02e01e33682f
2020-05-11T02:23:52.548+0200 DEBUG decentragit.repotree repotree/repotree.go:74 creating new repotree with options: &{Name:agp/test20200510 Tupelo:0xc000393900 Owners:[] ObjectStorageType:}
2020-05-11T02:23:52.554+0200 DEBUG decentragit.repotree repotree/repotree.go:86 user chaintree found for agp - did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19
2020-05-11T02:23:52.555+0200 DEBUG decentragit.usertree usertree/usertree.go:72 checking 0x087B1dB3Ed1233b408c4806CA03A02e01e33682f is owner of did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19, chaintree auths: [0x886fb6e3eA779d4A8c5711df4Bc7758DbEfFEB97]
can not create repo agp/test20200510, current user is not an owner of agp

In the 2nd host, I get the same error

host2

agp@ebian2:~$ mkdir test20200511
agp@debian2:~$ cd test20200511/
agp@debian2:~/test20200511$ git init .
agp@debian2:~/test20200511$ touch INSTALL
agp@debian2:~/test20200511$ git add
agp@debian2:~/test20200511$ git commit -m "1st commit"
agp@debian2:~/test20200511$ git config --global decentragit.username agp@debian2
agp@debian2:~/test20200511$ export DG_LOG_LEVEL=debug
agp@debian2:~/test20200511$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/agp/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/agp/.ssh/id_rsa.
Your public key has been saved in /home/agp/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:ALHExT89UA65trPuwk8OOBNO+YBQFiH+vfoblj/1YEU agp@debian2
The key's randomart image is:
+---[RSA 2048]----+
|. =+++. .o. |
|.+ ..o. oo E |
|.. . .. +o |
| ..... .= o. |
| ..=. .So.. |
| o =o o+ |
| =
o +oo |
| oo==. . |
| ..o.** |
+----[SHA256]-----+
agp@debian2:~$ # init DGIT in repo
agp@debian2:~/test20200511$ git dg init
2020-05-11T02:29:02.515+0200 INFO decentragit.cmd cmd/root.go:33 decentragit version: 7e53001
2020-05-11T02:29:02.516+0200 INFO decentragit.cmd cmd/root.go:34 goos: linux
2020-05-11T02:29:02.516+0200 INFO decentragit.cmd cmd/root.go:35 goarch: amd64
2020-05-11T02:29:03.756+0200 INFO decentragit.keyring keyring/keyring.go:51 keyring provider: libsecret
What decentragit username would you like to use? █gp@debian2

2020-05-11T02:29:05.404+0200 DEBUG decentragit.keyring keyring/keyring.go:69 finding private key agp@debian2
2020-05-11T02:29:16.523+0200 DEBUG decentragit.usertree usertree/usertree.go:62 created user agp@debian2 (did:tupelo:0x5165a6f00E3dA1Cc07eceA2F275973051211d062)
Welcome to decentragit!

Your decentragit username has been created as agp@debian2. Others can grant you access to their repos by running: git dg team add agp@debian2.

Below is your recovery phrase, you will need this to access your account from another machine or recover your account.

Please write this down in a secure location. This will be the only time the recovery phrase is displayed.

winter apple expire eyebrow happy moon noise round
brain antenna forum employ grief quiz silent say
window fortune pull build remove sunset another drip

What is your full repo name? agp█test20200511

2020-05-11T02:29:35.808+0200 DEBUG decentragit.repotree repotree/repotree.go:43 looking for repo agp/test20200511
2020-05-11T02:29:36.601+0200 DEBUG decentragit.repotree repotree/repotree.go:52 user chaintree found for agp - did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19
2020-05-11T02:29:36.603+0200 DEBUG decentragit.initializer initializer/initializer.go:344 creating new repo tree with endpoint dg://agp/test20200511 and auth 0x9c7c7C0795dD3c3B0889773CA92E84DBED86177d
2020-05-11T02:29:36.604+0200 DEBUG decentragit.repotree repotree/repotree.go:74 creating new repotree with options: &{Name:agp/test20200511 Tupelo:0xc000399380 Owners:[] ObjectStorageType:}
2020-05-11T02:29:36.609+0200 DEBUG decentragit.repotree repotree/repotree.go:86 user chaintree found for agp - did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19
2020-05-11T02:29:36.610+0200 DEBUG decentragit.usertree usertree/usertree.go:72 checking 0x9c7c7C0795dD3c3B0889773CA92E84DBED86177d is owner of did:tupelo:0xb76277b15FBa2179f870860d773E6A4845678d19, chaintree auths: [0x886fb6e3eA779d4A8c5711df4Bc7758DbEfFEB97]
can not create repo agp/test20200511, current user is not an owner of agp

hi @brandonwestcott , these are the sequences from scratch that I used in 2 clean debian hosts.

I have no idea of how to move forwards.

Can you give me a clue please?

Brandon Westcott
@brandonwestcott

hello @asteriogonzalez - the issue here is that agp must be a user AND must be the one to create an repo under agp/*, such as agp/test20200511. This is to prevent another user for arbitrarily creating repos under another users scope. You will either need to change the repo name to agp@debian1/test20200511 or go back to using agp user.

to change the repo name, start another new directory, and when it asks What decentragit username would you like to use, enter agp@debian1/test20200511-test2, and then after git dg init with that name, do a git dg team add agp@debian2. you should then be able to git clone dg://agp@debian1/test20200511-test2 run a git dg init, ensuring you select agp@debian2 as the user, and then a git push should work

you should be able to use the agp user on both hosts though, what happens on the 2nd host when you run git dg init and enter agp for What decentragit username would you like to use??
Bedeho Mender
@bedeho
Hi, is there a specification for how this works?
Andrew Holz
@icarusz
Hi @bedeho not sure what you are looking for in terms of a specification
There is the github project itself and then a basic marketing / explanation page at https://dgit.dev/
but that is what we have
if you have a specific question feel free to ask
Tony O
@bqv
what's the status of this project?
no activity here for some time
matrixbot
@matrixbot
qy guess it's dead.
Topper Bowers
@tobowers
hihi. We haven't prioritized working on this but are happy to help out. We have someone using it in a hackathon right now.
Marco Munizaga
@MarcoPolo
Hey all! I just stumbled upon this, but failed to get the init step working. It errors with "no current round found" Any hints?
❯ dgit init
It appears your repo is 'marcopolo/coffee-funnel', is that correct? y

no current round found