From 86130efd589455eed33d701756f0efd55ff5ce47 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 29 Mar 2021 14:35:16 +0100 Subject: [PATCH] download_strategy: use GitHubPackages constant. --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 9b6292a3ef..a184483139 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -543,7 +543,7 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy _, org, repo, = *url.match(GitHubPackages::URL_REGEX) - blob_url = "https://ghcr.io/v2/#{org}/#{repo}/#{name}/blobs/sha256:#{checksum}" + blob_url = "#{GitHubPackages::URL_PREFIX}#{org}/#{repo}/#{name}/blobs/sha256:#{checksum}" curl_download(blob_url, "--header", "Authorization: Bearer", to: temporary_path) end end