aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Baugh2017-07-20 11:08:53 -0400
committerJustin Baugh2017-07-20 11:08:53 -0400
commit7504d830cb7ba8617ab4adc4468239c8c71fa5a7 (patch)
tree0a3b2df515ec7553ebbd4f6e2c4240469ee4c54c
parent997260da541cf4d1be8769e8c7960372bd6a92f0 (diff)
downloadbrew-7504d830cb7ba8617ab4adc4468239c8c71fa5a7.tar.bz2
Add warning to doctor if HOMEBREW_BUILD_FROM_SOURCE is set.
-rw-r--r--Library/Homebrew/diagnostic.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index a5adfeb63..f5e07ac2f 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -98,6 +98,17 @@ module Homebrew
EOS
end
+ def check_build_from_source
+ return if !ENV.has_key?("HOMEBREW_BUILD_FROM_SOURCE")
+
+ <<-EOS.undent
+ You have HOMEBREW_BUILD_FROM_SOURCE set. This environment variable is
+ intended for use by Homebrew developers. If you are encountering errors,
+ please try unsetting this. Please do not file issues if you encounter
+ errors when using this environment variable.
+ EOS
+ end
+
# See https://github.com/Homebrew/legacy-homebrew/pull/9986
def check_path_for_trailing_slashes
bad_paths = PATH.new(ENV["HOMEBREW_PATH"]).select { |p| p.end_with?("/") }