aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-11-05 10:38:39 -0400
committerMike McQuaid2016-11-05 10:58:39 -0400
commitb38f5b3e7d597fe8fa9611f142ac253b94614c88 (patch)
tree0e695558595dfc3b0ecad8568ae3e754abdd7e53 /Library
parent6359c75a2dea3673284bc5f9b00d1ed790469e7b (diff)
downloadbrew-b38f5b3e7d597fe8fa9611f142ac253b94614c88.tar.bz2
diagnostic: only make minimum Xcode/CLT version checks fatal.
Also: freeze the relevant arrays.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/diagnostic.rb5
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb19
2 files changed, 12 insertions, 12 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 3a2d0d76d..23c626edd 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -86,12 +86,13 @@ module Homebrew
def development_tools_checks
%w[
check_for_installed_developer_tools
- ]
+ ].freeze
end
def fatal_development_tools_checks
%w[
- ]
+ ].freeze
+ end
end
def check_for_installed_developer_tools
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 6649865ba..a60dd2d05 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -10,19 +10,18 @@ module Homebrew
check_xcode_license_approved
check_for_osx_gcc_installer
check_xcode_8_without_clt_on_el_capitan
- ]
+ check_xcode_up_to_date
+ check_clt_up_to_date
+ check_for_other_package_managers
+ ].freeze
end
def fatal_development_tools_checks
- if MacOS.version >= :sierra && ENV["CI"].nil?
- %w[
- check_xcode_up_to_date
- check_clt_up_to_date
- ]
- else
- %w[
- ]
- end
+ %w[
+ check_xcode_minimum_version
+ check_clt_minimum_version
+ ].freeze
+ end
end
def check_for_unsupported_macos