1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/internal/client
German Lashevich ec7106fdea
feat(git): retry git clone on retriable error (#4725)
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.
2024-03-26 23:41:25 -03:00
..
testdata feat: allow to PR homebrew taps (#3903) 2023-04-06 22:58:06 -03:00
client_test.go feat: allow goreleaser to run in gerrit, soft-serve and others (#4271) 2023-09-04 11:23:38 -03:00
client.go feat(winget): sync fork before opening PR 2024-03-26 23:34:15 -03:00
config_test.go feat: publish taps, krews and scoops to regular git repositories (#3961) 2023-04-30 10:18:13 -03:00
config.go feat: publish taps, krews and scoops to regular git repositories (#3961) 2023-04-30 10:18:13 -03:00
git_test.go test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
git.go feat(git): retry git clone on retriable error (#4725) 2024-03-26 23:41:25 -03:00
gitea_test.go test: run testifylint -fix (#4483) 2023-12-17 15:34:28 -03:00
gitea.go feat(pipe/release): Mark GitHub releases as non-draft only after all artifacts are uploaded. (#4626) 2024-02-19 12:50:47 +00:00
github_test.go chore(deps): update go-github to v59 (#4622) 2024-02-09 15:43:19 -03:00
github.go feat(winget): sync fork before opening PR 2024-03-26 23:34:15 -03:00
gitlab_test.go feat: support projectID for gitlab CreateFile (brew, nix, etc) (#4705) 2024-03-17 15:26:04 -03:00
gitlab.go feat: support projectID for gitlab CreateFile (brew, nix, etc) (#4705) 2024-03-17 15:26:04 -03:00
mock.go feat(winget): sync fork before opening PR 2024-03-26 23:34:15 -03:00
release_notes_test.go feat: allow to customize release notes update behavior (#2702) 2021-11-26 09:59:15 -03:00
release_notes.go feat: allow to customize release notes update behavior (#2702) 2021-11-26 09:59:15 -03:00