1
0
forked from ALHP/ALHP.GO

increase base wait time of clone retry

This commit is contained in:
2023-05-21 21:44:15 +02:00
parent eb3c35dc86
commit 32a4b9dc9e

View File

@@ -343,7 +343,7 @@ func (p *ProtoPackage) setupBuildDir() (string, error) {
gitlabPath = reReplaceUnderscore.ReplaceAllString(gitlabPath, "-") gitlabPath = reReplaceUnderscore.ReplaceAllString(gitlabPath, "-")
gitlabPath = reReplaceTree.ReplaceAllString(gitlabPath, "unix-tree") gitlabPath = reReplaceTree.ReplaceAllString(gitlabPath, "unix-tree")
if err := retry.Fibonacci(context.Background(), 1*time.Second, func(ctx context.Context) error { if err := retry.Fibonacci(context.Background(), 10*time.Second, func(ctx context.Context) error {
cmd := exec.Command("git", "clone", "--depth", "1", "--branch", p.State.TagVer, cmd := exec.Command("git", "clone", "--depth", "1", "--branch", p.State.TagVer,
fmt.Sprintf("https://gitlab.archlinux.org/archlinux/packaging/packages/%s.git", gitlabPath), buildDir) fmt.Sprintf("https://gitlab.archlinux.org/archlinux/packaging/packages/%s.git", gitlabPath), buildDir)
res, err := cmd.CombinedOutput() res, err := cmd.CombinedOutput()