Merge pull request #13832 from Rylan12/source-fallback-with-api

Don't fallback to building from source with `HOMEBREW_INSTALL_FROM_API`
This commit is contained in:
Mike McQuaid 2022-09-09 09:56:09 +01:00 committed by GitHub
commit 6b6b09deba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)