diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index be40ce11b594f1b8f68e7e52011e0e1d240a384c..d1fb9910847db39ba4ec8bce1049f2a2b6702bfb 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -142,6 +142,7 @@ class Hbc::CLI command_string, *rest = *arguments rest = process_options(rest) command = Hbc.help ? "help" : lookup_command(command_string) + Hbc.default_tap.install unless Hbc.default_tap.installed? Hbc.init if should_init?(command) run_command(command, *rest) rescue Hbc::CaskError, Hbc::CaskSha256MismatchError => e diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb index e4d88f3187800c52b9da1470112e78912b44b378..b800cf6b6ad3e953f7f8afce841f5050da8617fb 100644 --- a/Library/Homebrew/cask/lib/hbc/locations.rb +++ b/Library/Homebrew/cask/lib/hbc/locations.rb @@ -126,7 +126,7 @@ module Hbc::Locations attr_writer :default_tap def default_tap - @default_tap ||= Tap.fetch("caskroom/homebrew-cask") + @default_tap ||= Tap.fetch("caskroom", "homebrew-cask") end def path(query) diff --git a/Library/Homebrew/official_taps.rb b/Library/Homebrew/official_taps.rb index 55e726102ee6d497f30c991d8d0f9937260bea94..53f3640d1be3f3979ef94d1fad1773d091924465 100644 --- a/Library/Homebrew/official_taps.rb +++ b/Library/Homebrew/official_taps.rb @@ -17,7 +17,6 @@ OFFICIAL_TAPS = %w[ ].freeze OFFICIAL_CMD_TAPS = { - "caskroom/cask" => ["cask"], "homebrew/bundle" => ["bundle"], "homebrew/services" => ["services"], }.freeze diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 22b12325052711c968ea62d311e915ae1ea51320..fb194a5bb9c025a8f5284b780c819fb8299d5bc4 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -307,7 +307,7 @@ class Tap @formula_dir ||= [path/"Formula", path/"HomebrewFormula", path].detect(&:directory?) end - # path to the directory of all casks for caskroom/cask {Tap}. + # path to the directory of all {Cask} files for this {Tap}. def cask_dir @cask_dir ||= path/"Casks" end