From 373b7d1dbb874b7f40c5e2e97cfe1ff46b46029f Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Sat, 4 May 2024 09:57:30 -0700 Subject: [PATCH] tap: tweak core tap warning Most users don't need the core taps to be installed locally but the current message doesn't communicate that they're sometimes necessary for local development. This just tweaks the message to be more informative. ```console $ brew tap homebrew/cask Error: Tapping homebrew/cask is no longer typically necessary. Add --force if you are sure you need it for local development. ``` --- Library/Homebrew/tap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index ab2046dae0710..183bc7ffe4745 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -434,7 +434,7 @@ def install(quiet: false, clone_target: nil, return elsif (core_tap? || core_cask_tap?) && !Homebrew::EnvConfig.no_install_from_api? && !force odie "Tapping #{name} is no longer typically necessary.\n" \ - "Add #{Formatter.option("--force")} if you are sure you need it done." + "Add #{Formatter.option("--force")} if you are sure you need it for local development." end clear_cache