Skip to content

Commit

Permalink
tap: tweak core tap warning
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
apainintheneck committed May 4, 2024
1 parent dfbf269 commit 373b7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 373b7d1

Please sign in to comment.