retry regardless of error, add retry limit

This commit is contained in:
2023-05-23 21:51:37 +02:00
parent 025ab9a75a
commit 36757dc711
3 changed files with 8 additions and 9 deletions

View File

@@ -50,7 +50,6 @@ var (
reReplaceSpecialChars = regexp.MustCompile(`(?m)[^a-zA-Z0-9_\-.]`)
reReplaceUnderscore = regexp.MustCompile(`(?m)[_\-]{2,}`)
reReplaceTree = regexp.MustCompile(`(?m)^tree$`)
reGitHTTPError = regexp.MustCompile(`(?mi)The requested URL returned error: (\d+)`)
)
type Conf struct {
@@ -84,6 +83,7 @@ type Conf struct {
Skipped, Queued, Latest, Failed, Signing, Building, Unknown string
}
}
MaxCloneRetries uint64 `yaml:"max_clone_retries"`
}
type Globs []string