Skip to content

Commit

Permalink
Merge pull request #18818 from Homebrew/allow-disabled-installs
Browse files Browse the repository at this point in the history
formula_installer: allow installing/upgrading disabled formulae
  • Loading branch information
MikeMcQuaid authored Nov 25, 2024
2 parents 666601f + ba8d449 commit 69b5df1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,12 @@ def prelude
when :deprecated
opoo message
when :disabled
GitHub::Actions.puts_annotation_if_env_set(:error, message)
raise CannotInstallFormulaError, message
if force?
opoo message
else
GitHub::Actions.puts_annotation_if_env_set(:error, message)
raise CannotInstallFormulaError, message
end
end
end

Expand Down

0 comments on commit 69b5df1

Please sign in to comment.