[Formula author] Benefit of instructing users to run tap
first?
#2243
-
I've noticed that almost all projects instruct users to do the following:
but I've also noticed that you can do:
which appears to do a tap first and then installs the repo. What's the benefit of instructing users to run a tap first? I couldn't find much documentation around this or relevant issues / discussions here. Happy to be pointed to some docs! Thanks all |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If your tap is on GitHub, then there aren't really any benefits to doing If your tap is not hosted on GitHub (e.g. GitLab), then you need to do |
Beta Was this translation helpful? Give feedback.
If your tap is on GitHub, then there aren't really any benefits to doing
brew tap
beforebrew install
, other than not having to pass the fully-qualifiedgithub-org/tap-name/formula-name
tobrew install
. (That benefit is, admittedly, dubious.)If your tap is not hosted on GitHub (e.g. GitLab), then you need to do
brew tap
first, because doingbrew install
will havebrew
looking up either a wrong or non-existent tap.