do you see 3 or 4 relays after ngit pull / list ?

Reply to this note

Please Login to reply.

Discussion

nostr:npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr Why does it ask me for the naddr every time?

Its because the 'earliest unique commit' doesnt match the initial commit. So it can't find it automatically.

Ngit doesn't store the selected repository yet so it tries to find it each time.

Ah, okay.

Can we add naddr to yaml and use if not empty?

naddr is encoded kind, npub, identifer and optional relays. The missing piece in maintainers.yaml is identifier. we could potentially add that.

how ? specs ? i think is ok for maintainers.yaml to point to right address/identifier ( like git remote ? ) and use/cache/change.

like this:

```

identifier:

gitworkshop

maintainers:

- nostr:npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr

relays:

- wss://relay.damus.io

- wss://nos.lol

- wss://relay.nostr.band

```

maintainers.yaml is not in the nip34 spec. If we sort out the clone UX, I think the file is only really useful for a minority of repositories.

how about if is part of rust-nostr-ngit sdk ? Maybe git extension can be put in crate as a extension. If is used every time I try pull or list, is not a "minority".

You are right in that ngit currently looks for the maintainers.yaml every time to identify the maintainers. What I mean is that it doesn't need to. Ideally when a user first uses ngit on a repository (either by cloning the repo using ngit, a feature not yet built, or throug `ngit list`) they should choose a pubkey:identifer to trust.

I think the idea is not to enter naddr every time, and have that store/compute. Is like url for a remote after clone, just a reference that you use, and not have to input after , for any operation.

I can't figure out how to pull the changes. I see

finding proposals...

✔ 3 events wss://relay.damus.io/

✘ error wss://relay.nostr.ai/ connection timeout

✔ 0 events wss://relay.snort.social/

✔ 0 events wss://nostr.einundzwanzig.space/ ? all proposals ›

Edited maintainers file

2024.05.16-10.17.43

Burning an npub

But when I try to do ngit pull, I get

finding proposal root event...

✔ 3 events wss://relay.damus.io/

✘ error wss://relay.nostr.ai/ connection timeout

✘ error wss://relay.snort.social/ connection timeout

✔ 0 events wss://nostr.einundzwanzig.space/

Error: cannot find a proposal root event associated with the checked out branch name

The branch is master.

Which proposal did you select? Did you check it put as a branch?

It turned out that the proposal I was trying to pull was corrupt because of a missing file-ending. I thought the errors were some sort of conflict, but they weren't.