From 8138d52ceb25027538151d7c38bd7ee164aa075e Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 8 Sep 2022 23:32:42 -0400 Subject: [PATCH] Don't fallback to building from source with `HOMEBREW_INSTALL_FROM_API` --- Library/Homebrew/formula_installer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0f83751c7e..3859439458 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -1163,6 +1163,8 @@ class FormulaInstaller if pour_bottle?(output_warning: true) formula.fetch_bottle_tab + elsif Homebrew::EnvConfig.install_from_api? + odie "Unable to build #{formula.name} from source with HOMEBREW_INSTALL_FROM_API." else formula.fetch_patches formula.resources.each(&:fetch)