Skip to content

Commit

Permalink
formula_installer: allow installing/upgrading disabled formulae
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <patrick@linnane.io>
  • Loading branch information
p-linnane committed Nov 25, 2024
1 parent 666601f commit ba8d449
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

Check warning on line 261 in Library/Homebrew/formula_installer.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/formula_installer.rb#L261

Added line #L261 was not covered by tests
end
end
end

Expand Down

0 comments on commit ba8d449

Please sign in to comment.