Don't fallback to building from source with HOMEBREW_INSTALL_FROM_API

This commit is contained in:
Rylan Polster 2022-09-08 23:32:42 -04:00
parent 5524b302d8
commit 8138d52ceb
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -1163,6 +1163,8 @@ class FormulaInstaller
if pour_bottle?(output_warning: true) if pour_bottle?(output_warning: true)
formula.fetch_bottle_tab formula.fetch_bottle_tab
elsif Homebrew::EnvConfig.install_from_api?
odie "Unable to build #{formula.name} from source with HOMEBREW_INSTALL_FROM_API."
else else
formula.fetch_patches formula.fetch_patches
formula.resources.each(&:fetch) formula.resources.each(&:fetch)