Tap Enhancement: Upgrade/reinstall/uninstall formula/casks from previous tap by default #6329
Unanswered
IlIllIl
asked this question in
Tap maintenance and brew development
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
Assuming the third-party tap has
foo
and the homebrew official tap have the same name of formula/cask, and we have already installed thefoo
frommytap/mytap
.This message appear even only one of the tap's version has installed, every upgrade/reinstall/uninstall
foo
needs to specify the tap.And sometimes due to version differences and modifications, it will default to the version under the homebrew official tap and cause errors when running
brew upgrade
.I suggest that if we have already installed
foo
frommytap/mytap
tap , brew can set default to the last tap sourcemytap/mytap
when runningbrew upgrade foo
(same asbrew upgrade mytap/mytap/foo
) instead of specifying it manually or switching it automatically every time.If we need to change tap to homebrew official tap, we need to do it manually, but
brew reinstall foo
is the same asbrew reinstall mytap/mytap/foo
.Similarly, when uninstalling by running
brew uninstall foo
, brew should automatically query local data and uninstall frommytap/mytap
version which already installed.Beta Was this translation helpful? Give feedback.
All reactions