From ee6ef00a73662606e9902a37efbf3e3f89dd5620 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 17 May 2023 11:43:14 +0800 Subject: [PATCH] GitHubArtifactDownloadStrategy: set cache properly Co-authored-by: Bo Anderson --- Library/Homebrew/download_strategy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index b64f9babf2..884c169ed2 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -637,6 +637,11 @@ end # # @api private class GitHubArtifactDownloadStrategy < AbstractFileDownloadStrategy + def initialize + super + @cache = HOMEBREW_CACHE/"gh-actions-artifact" + end + def fetch(timeout: nil) ohai "Downloading #{url}" if cached_location.exist?