Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK variable #5528

Merged
merged 1 commit into from
Jan 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ def install
formula.prefix.rmtree if formula.prefix.directory?
formula.rack.rmdir_if_possible
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
onoe e.message
Expand Down
4 changes: 4 additions & 0 deletions Library/Homebrew/manpages/brew.1.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
`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`:
If set, Homebrew will not print text with color added.

Expand Down
4 changes: 4 additions & 0 deletions docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
`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`:
If set, Homebrew will not print text with color added.

Expand Down
4 changes: 4 additions & 0 deletions manpages/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -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\.
.
.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
If set, Homebrew will not print text with color added\.
.
Expand Down