diagnostic: only make minimum Xcode/CLT version checks fatal.
Also: freeze the relevant arrays.
This commit is contained in:
parent
6359c75a2d
commit
b38f5b3e7d
@ -86,12 +86,13 @@ module Homebrew
|
|||||||
def development_tools_checks
|
def development_tools_checks
|
||||||
%w[
|
%w[
|
||||||
check_for_installed_developer_tools
|
check_for_installed_developer_tools
|
||||||
]
|
].freeze
|
||||||
end
|
end
|
||||||
|
|
||||||
def fatal_development_tools_checks
|
def fatal_development_tools_checks
|
||||||
%w[
|
%w[
|
||||||
]
|
].freeze
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_installed_developer_tools
|
def check_for_installed_developer_tools
|
||||||
|
@ -10,19 +10,18 @@ module Homebrew
|
|||||||
check_xcode_license_approved
|
check_xcode_license_approved
|
||||||
check_for_osx_gcc_installer
|
check_for_osx_gcc_installer
|
||||||
check_xcode_8_without_clt_on_el_capitan
|
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
|
end
|
||||||
|
|
||||||
def fatal_development_tools_checks
|
def fatal_development_tools_checks
|
||||||
if MacOS.version >= :sierra && ENV["CI"].nil?
|
%w[
|
||||||
%w[
|
check_xcode_minimum_version
|
||||||
check_xcode_up_to_date
|
check_clt_minimum_version
|
||||||
check_clt_up_to_date
|
].freeze
|
||||||
]
|
end
|
||||||
else
|
|
||||||
%w[
|
|
||||||
]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_unsupported_macos
|
def check_for_unsupported_macos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user