Skip to content

Commit 5569efe

Browse files
committed
fix(ds): update auth error message to suggest HOMEBREW_GH_TOKEN
Signed-off-by: maxcleme <maxime.clement@docker.com>
1 parent b9cb06b commit 5569efe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_download_strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def fetch(timeout: nil)
4747
"gh --repo=#{@owner}/#{@repo} release download #{@tag} --pattern=#{@filename} --output=#{Shellwords.escape(temporary_path.to_s)} --clobber"
4848
puts `export PATH=$PATH:/opt/homebrew/bin:/usr/local/bin:~/.local/bin && #{cmd}`
4949
if not $?.success?
50-
raise CurlDownloadStrategyError, "You may need to run 'gh auth login' or 'gh auth refresh' to login to GitHub."
50+
raise CurlDownloadStrategyError, "You may need to expose a valid HOMEBREW_GH_TOKEN environment variable:\n\nexport HOMEBREW_GH_TOKEN=$(gh auth token)"
5151
end
5252
end
5353

0 commit comments

Comments
 (0)