Closed samhh closed 3 months ago
Hi, I'll have a look what's going on and get back to you asap.
I think I found the issue. At least it is working for me in the changes I did in https://github.com/cooperspencer/gickup/pull/218.
Can you try to run the changes from that branch? Sourcehut in general wants an authentication when doing anything API related, that's why we need a token for that.
I think I found the issue. At least it is working for me in the changes I did in #218.
Success! 🎊
Sourcehut in general wants an authentication when doing anything API related, that's why we need a token for that.
My curiosity is why the tool couldn't be configured to clone over unauthenticated HTTP, which'd be simpler for my use case where everything I want to back up from Sourcehut is open source.
$ git clone https://git.sr.ht/~samhh/bangin # works
I did it like that because gickup should check if everything is in order there.
But if you just want to backup this single repo then you can use the any
source.
source:
any:
- url: https://git.sr.ht/~samhh/bangin
If this issue is not solved for you, please feel free to open it again.
repro.yml
:It looks to be failing here: https://github.com/cooperspencer/gickup/blob/main/sourcehut/sourcehut.go#L238
Here's a curl:
As an aside, I noticed it's possible to
include
specific repos with GitHub without auth, but not Sourcehut. Is that expected?