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,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