cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
962 stars 34 forks source link

FTL repository not found #112

Closed pew closed 1 year ago

pew commented 1 year ago

Hi,

I've set gickup to clone starred repositories and apparently the GitHub API still returns repos which have been deleted or taken down via a DMCA request, gickup tries to clone the repo and exits the process after retrying it several times:

2022-09-24 14:23:50 INF starting backup for https://github.com/Marak/faker.js.git stage=backup
2022-09-24 14:23:50 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 14:23:50 WRN retry 1 from 5 path=/home/jonas/git/backup stage=locally
2022-09-24 14:23:55 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 14:23:55 WRN retry 2 from 5 path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:00 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:00 WRN retry 3 from 5 path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:05 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:05 WRN retry 4 from 5 path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:10 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 14:24:10 FTL repository not found path=/home/jonas/git/backup repo=github.com/Marak/faker.js stage=locally

Can gickup be configured to just continue cloning the remaining repos instead of exiting completely? I guess the error messages are fine for the repository in question, but it shouldn't stop the whole process.

cooperspencer commented 1 year ago

Hi, That seems to be a bug. I will try to fix it.

cooperspencer commented 1 year ago

I just pushed a fix. Could you try it out?

pew commented 1 year ago

Great! Thank you, I got the warning and gickup continued with the remaining repos.

2022-09-24 16:37:20 INF cloning github.com/Marak/faker.js path=/home/jonas/git/backup stage=locally
2022-09-24 16:37:20 WRN repository not found path=/home/jonas/git/backup repo=github.com/Marak/faker.js stage=locally