diff options
| author | Justin Baugh | 2017-07-20 11:08:53 -0400 | 
|---|---|---|
| committer | Justin Baugh | 2017-07-20 11:08:53 -0400 | 
| commit | 7504d830cb7ba8617ab4adc4468239c8c71fa5a7 (patch) | |
| tree | 0a3b2df515ec7553ebbd4f6e2c4240469ee4c54c /Library | |
| parent | 997260da541cf4d1be8769e8c7960372bd6a92f0 (diff) | |
| download | brew-7504d830cb7ba8617ab4adc4468239c8c71fa5a7.tar.bz2 | |
Add warning to doctor if HOMEBREW_BUILD_FROM_SOURCE is set.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 11 | 
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?("/") }  | 
