A2-ai / ghqc

https://a2-ai.github.io/ghqc
Other
0 stars 0 forks source link

cloning non-existent info repo for an extended time #5

Open jenna-a2ai opened 3 weeks ago

jenna-a2ai commented 3 weeks ago

When trying to clone a non-existing repo, this error pops up after ~5 minutes. To prevent this, should add a check/timeout verification that the URL is accessible

Screenshot 2024-10-30 at 11 23 10 AM

wes-a2ai commented 3 weeks ago

Potential fix code draft withr::with_options(list(timeout = min(5, getOption("timeout"))), download.file(ghqc_info_repo, tempfile(), method = "libcurl"))

In this function and/or during renviron write helpers https://github.com/A2-ai/ghqc/blob/80e490e9f63bd261a6df5845760d89cc90947982/R/info_repo.R#L196-L204