1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-21 21:07:19 +02:00
German Lashevich ec7106fdea
feat(git): retry git clone on retriable error ()
This PR adds retry logic to the process of cloning a git repository.
Currently, it retries only if the output of the git clone command
contains the string `Connection reset`.
Probably, there are more cases where retry is reasonable, but I'm not
sure what they are.

The number of retries is hardcoded to 10 with increasing delay between
retries — in the same way as it is done in , which served me as an
example.

The initial use case is described in .
2024-03-26 23:41:25 -03:00
..
2024-03-20 00:53:51 -03:00
2023-07-25 08:26:44 -03:00
2023-06-14 23:59:55 -03:00
2021-04-25 14:20:49 -03:00
2023-07-25 08:26:44 -03:00
2024-01-14 15:26:16 -03:00
2023-11-06 09:14:07 -03:00