formula_installer: allow installing/upgrading disabled formulae

Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
Patrick Linnane 2024-11-25 08:57:31 -08:00
parent 666601f401
commit ba8d449073
No known key found for this signature in database

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