Merge pull request #18818 from Homebrew/allow-disabled-installs

formula_installer: allow installing/upgrading disabled formulae
This commit is contained in:
Mike McQuaid 2024-11-25 17:07:31 +00:00 committed by GitHub
commit 69b5df1154
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -254,10 +254,14 @@ class FormulaInstaller
when :deprecated
opoo message
when :disabled
if force?
opoo message
else
GitHub::Actions.puts_annotation_if_env_set(:error, message)
raise CannotInstallFormulaError, message
end
end
end
Tab.clear_cache