From f212bf20cbd5c73912019371496cd8fb344a70dd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 17 Nov 2020 17:31:30 +0000 Subject: [PATCH] cli/named_args: don't convert to taps. Fixes https://github.com/Homebrew/brew/issues/8966 --- Library/Homebrew/cli/named_args.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/cli/named_args.rb b/Library/Homebrew/cli/named_args.rb index c179ee8a6c..57c554b629 100644 --- a/Library/Homebrew/cli/named_args.rb +++ b/Library/Homebrew/cli/named_args.rb @@ -100,14 +100,12 @@ module Homebrew to_formulae_to_casks(method: :resolve, only: only) end - # Convert named arguments to {Tap}, {Formula} or {Cask} objects. + # Convert named arguments to {Formula} or {Cask} objects. # If both a formula and cask exist with the same name, returns the # formula and prints a warning unless `only` is specified. def to_objects(only: nil, method: nil) @to_objects ||= {} @to_objects[only] ||= downcased_unique_named.flat_map do |name| - next Tap.fetch(name) if only == :tap || (only.nil? && name.count("/") == 1 && !name.start_with?("./", "/")) - load_formula_or_cask(name, only: only, method: method) end.uniq.freeze end