-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error/warning when brew install
refuses to install a formula from a tap with the same name as an already installed keg
#17941
Comments
It allows them to co-exist as a distinct installable items but it does not allow for both of them to be installed at the same time. This applies to both formulae and casks. You can see that formulae are installed to |
As @Bo98 said. This is a WONTFIX, unfortunately, it's baked too hard into the Homebrew internals to realistically ever change it. The best workaround is to rename the formulae in your tap. |
Hm, I think it's a fine constraint to not allow two formulae with the same name to be installed at once, but I think the error message should indicate that — "a formula with the same name from tap ... is installed". Also, I think we should have some callouts to this fact in the Homebrew documentation, which currently don't indicate that this is an issue. |
I agree this should be better documented somewhere and the error message could be improved as well. |
brew install
refuses to install a cask when another with the same name is installedbrew install
refuses to install a package when another with the same name is installed
Apologies for the confusion @9999years, this issue should not have been reopened yet. I agree the documentation could be improved here but I don't think this issue as-is is the best way of describing the problem that needs addressed. @9999years are you ok if I rework the original issue body to describe the (new) problem(s) that should be fixed here or would you rather a new issue is opened that is not attributed to you? Thanks! |
Feel free to rework the issue body, the template seemed really strict so I didn't want to "break the rules" |
brew install
refuses to install a package when another with the same name is installedbrew install
refuses to install a formula from a tap with the same name as an already installed keg
Thanks @9999years, done now! |
(Reworded by @MikeMcQuaid)
What did you expect to happen?
I expected Homebrew to be able to install two formulae with the same name from different taps. When this didn't work, I expected the error message to reference this
Step-by-step reproduction instructions (by running
brew
commands)Further,
brew info
will incorrectly claim thatmercurytechnologies/tap/postgresql@16
is installed.Related issues
--json=v2 --installed
#17416 noticed this issue withbrew info --json=v2 --installed
, but didn't notice thatbrew install
suffers the same flawhomebrew/core
andhomebrew/cask
brew deps
output shows inconsistent dependency information between tree and non-tree output #16032The text was updated successfully, but these errors were encountered: