fix(release_download): correct formatting in retry logic for downloading Packer release zip

HRP-2522-Remove_syft_bin
Hari Om 2 days ago
parent 13cad73e1a
commit 7716cd55a9

@ -243,9 +243,9 @@ func downloadPackerRelease(ctx context.Context, goos, goarch string) (string, er
// Download the release zip.
var zipPath string
err = retry.Config{
Tries: 3,
RetryDelay: func() time.Duration {return 5 * time.Second},
}.Run(ctx , func(ctx context.Context) error {
Tries: 3,
RetryDelay: func() time.Duration { return 5 * time.Second },
}.Run(ctx, func(ctx context.Context) error {
var e error
zipPath, e = downloadURLToTempFile(ctx, client, zipURL, ".zip")
return e

Loading…
Cancel
Save