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,8 +254,12 @@ class FormulaInstaller
when :deprecated when :deprecated
opoo message opoo message
when :disabled when :disabled
GitHub::Actions.puts_annotation_if_env_set(:error, message) if force?
raise CannotInstallFormulaError, message opoo message
else
GitHub::Actions.puts_annotation_if_env_set(:error, message)
raise CannotInstallFormulaError, message
end
end end
end end