Subject: bug#71818: ‘update-cached-checkout’ (Guile-Git/libgit2) can sometimes get stuck forever

From: Ludovic Courtès <[email-masked]>
Date: Fri, 18 Oct 2024 14:57:53 +0200

Ludovic Courtès <[email-masked]> skribis:

> Ludovic Courtès <[email-masked]> skribis:
>
>> ‘update-cached-checkout’ can sometimes get stuck on a connection
>> forever.  This is problematic for ‘cuirass register’, as it means that
>> it’ll silently stay forever in an unfinished ‘remote-fetch’, thus
>> without updating repos anymore:
>
> [...]
>
>> AFAICS, there’s no timeout option in libgit2 unfortunately:
>
> Good news: libgit2 1.8 has ‘GIT_OPT_SET_SERVER_TIMEOUT’ etc., which are
> exactly what we need.  To be continued…

Guile-Git 0.9.0 added support for that, and now there’s a Guix patch at
<https://issues.guix.gnu.org/73861>.

Ludo’.