diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 4d68457bde..0785483b08 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -66,7 +66,7 @@ module Homebrew args = fetch_args.parse bucket = if args.deps? - args.named.to_formulae_and_casks.flat_map do |formula_or_cask| + args.named.to_formulae_and_casks(prefer_loading_from_api: true).flat_map do |formula_or_cask| case formula_or_cask when Formula f = formula_or_cask @@ -77,7 +77,7 @@ module Homebrew end end else - args.named.to_formulae_and_casks + args.named.to_formulae_and_casks(prefer_loading_from_api: true) end.uniq puts "Fetching: #{bucket * ", "}" if bucket.size > 1