We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9cb06b commit 5569efeCopy full SHA for 5569efe
1 file changed
custom_download_strategy.rb
@@ -47,7 +47,7 @@ def fetch(timeout: nil)
47
"gh --repo=#{@owner}/#{@repo} release download #{@tag} --pattern=#{@filename} --output=#{Shellwords.escape(temporary_path.to_s)} --clobber"
48
puts `export PATH=$PATH:/opt/homebrew/bin:/usr/local/bin:~/.local/bin && #{cmd}`
49
if not $?.success?
50
- raise CurlDownloadStrategyError, "You may need to run 'gh auth login' or 'gh auth refresh' to login to GitHub."
+ raise CurlDownloadStrategyError, "You may need to expose a valid HOMEBREW_GH_TOKEN environment variable:\n\nexport HOMEBREW_GH_TOKEN=$(gh auth token)"
51
end
52
53
0 commit comments