mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
ec7106fdea
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 #4265, which served me as an example. The initial use case is described in #4724. |
||
---|---|---|
.. | ||
testdata | ||
client_test.go | ||
client.go | ||
config_test.go | ||
config.go | ||
git_test.go | ||
git.go | ||
gitea_test.go | ||
gitea.go | ||
github_test.go | ||
github.go | ||
gitlab_test.go | ||
gitlab.go | ||
mock.go | ||
release_notes_test.go | ||
release_notes.go |