Merge pull request #5528 from MikeMcQuaid/no-bottle-fallback

Add HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK variable
This commit is contained in:
Mike McQuaid 2019-01-12 12:23:57 +00:00 committed by GitHub
commit 4f17e2384a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 1 deletions

View File

@ -296,7 +296,9 @@ class FormulaInstaller
formula.prefix.rmtree if formula.prefix.directory? formula.prefix.rmtree if formula.prefix.directory?
formula.rack.rmdir_if_possible formula.rack.rmdir_if_possible
end end
raise if ARGV.homebrew_developer? || e.is_a?(Interrupt) raise if ARGV.homebrew_developer? ||
e.is_a?(Interrupt) ||
ENV["HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK"]
@pour_failed = true @pour_failed = true
onoe e.message onoe e.message

View File

@ -218,6 +218,10 @@ Note that environment variables must have a value set to be detected. For exampl
If set, Homebrew will not auto-update before running `brew install`, If set, Homebrew will not auto-update before running `brew install`,
`brew upgrade` or `brew tap`. `brew upgrade` or `brew tap`.
* `HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK`:
If set, Homebrew will fail if on the failure of installation from a bottle
rather than falling back to building from source.
* `HOMEBREW_NO_COLOR`: * `HOMEBREW_NO_COLOR`:
If set, Homebrew will not print text with color added. If set, Homebrew will not print text with color added.

View File

@ -1211,6 +1211,10 @@ Note that environment variables must have a value set to be detected. For exampl
If set, Homebrew will not auto-update before running `brew install`, If set, Homebrew will not auto-update before running `brew install`,
`brew upgrade` or `brew tap`. `brew upgrade` or `brew tap`.
* `HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK`:
If set, Homebrew will fail if on the failure of installation from a bottle
rather than falling back to building from source.
* `HOMEBREW_NO_COLOR`: * `HOMEBREW_NO_COLOR`:
If set, Homebrew will not print text with color added. If set, Homebrew will not print text with color added.

View File

@ -1341,6 +1341,10 @@ If set, Homebrew will not send analytics\. See: \fIhttps://docs\.brew\.sh/Analyt
If set, Homebrew will not auto\-update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\. If set, Homebrew will not auto\-update before running \fBbrew install\fR, \fBbrew upgrade\fR or \fBbrew tap\fR\.
. .
.TP .TP
\fBHOMEBREW_NO_BOTTLE_SOURCE_FALLBACK\fR
If set, Homebrew will fail if on the failure of installation from a bottle rather than falling back to building from source\.
.
.TP
\fBHOMEBREW_NO_COLOR\fR \fBHOMEBREW_NO_COLOR\fR
If set, Homebrew will not print text with color added\. If set, Homebrew will not print text with color added\.
. .