You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
This is caused by 6f184ea, which rescues Cask::CaskUnavailableError but not Cask::CaskInvalidError. In this case the fish cask is invalid and can neither be installed nor loaded; this meant that brew install fish also fails, since it now depends on the cask being valid.
The second issue this exposes is that we should be able to handle this kind of exception in formula_installer a bit more graciously; it shouldn't leave a package installed but unlinked.
The text was updated successfully, but these errors were encountered:
Certain casks in the main cask repository may be invalid, for whatever
reason. Without handling this exception, the user will get a cask-related
exception while the formula of the same name is installed, and their
installation will abort half-completed.
Fixes#5709.
Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
When running
brew upgrade
, the fish formula was upgraded from 3.0.0 to 3.0.1.What happened (include command output)
During the upgrade, this confusing error was raised. This left fish in a half-broken state, where it was installed but not linked.
Command output
What you expected to happen
Installation succeeds.
Step-by-step reproduction instructions (by running
brew
commands)brew install fish
This is caused by 6f184ea, which rescues
Cask::CaskUnavailableError
but notCask::CaskInvalidError
. In this case thefish
cask is invalid and can neither be installed nor loaded; this meant thatbrew install fish
also fails, since it now depends on the cask being valid.The second issue this exposes is that we should be able to handle this kind of exception in
formula_installer
a bit more graciously; it shouldn't leave a package installed but unlinked.The text was updated successfully, but these errors were encountered: