utils/github/artifacts: fix missing Utils::Curl reference.

Needed after https://github.com/Homebrew/brew/pull/15940
This commit is contained in:
Mike McQuaid 2023-09-05 07:52:39 -04:00
parent 51889e7a08
commit 84973da037
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -40,10 +40,10 @@ class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy
puts "Already downloaded: #{cached_location}"
else
begin
curl "--location", "--create-dirs", "--output", temporary_path, url,
"--header", "Authorization: token #{@token}",
secrets: [@token],
timeout: timeout
Utils::Curl.curl "--location", "--create-dirs", "--output", temporary_path, url,
"--header", "Authorization: token #{@token}",
secrets: [@token],
timeout: timeout
rescue ErrorDuringExecution
raise CurlDownloadStrategyError, url
end