From 32a4b9dc9e81f7820c3f76e734fda456b5209529 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 21 May 2023 21:44:15 +0200 Subject: [PATCH] increase base wait time of clone retry --- proto_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto_package.go b/proto_package.go index fa69a10..c8df51a 100644 --- a/proto_package.go +++ b/proto_package.go @@ -343,7 +343,7 @@ func (p *ProtoPackage) setupBuildDir() (string, error) { gitlabPath = reReplaceUnderscore.ReplaceAllString(gitlabPath, "-") 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, fmt.Sprintf("https://gitlab.archlinux.org/archlinux/packaging/packages/%s.git", gitlabPath), buildDir) res, err := cmd.CombinedOutput()