From 84973da03796ab6e5d8b2a0c6bdf5330905adadb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 5 Sep 2023 07:52:39 -0400 Subject: [PATCH] utils/github/artifacts: fix missing Utils::Curl reference. Needed after https://github.com/Homebrew/brew/pull/15940 --- Library/Homebrew/utils/github/artifacts.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/utils/github/artifacts.rb b/Library/Homebrew/utils/github/artifacts.rb index f6cf42365c88a..45048a9bbbc97 100644 --- a/Library/Homebrew/utils/github/artifacts.rb +++ b/Library/Homebrew/utils/github/artifacts.rb @@ -40,10 +40,10 @@ def fetch(timeout: nil) 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