diagnostic: make using outdated dev tools fatal

A smarter form of 559cea7fa9.
Travis users can't force Travis to update 10.11 to Xcode 8, so this was murdering
builds left, right & centre.

Fixes https://github.com/Homebrew/brew/issues/1096 whilst still retaining the
point of the original commit. Also offers developers an opt-out so if we need
to test something on 10.11 with Xcode 7.x we can, etc.
This commit is contained in:
Dominyk Tiller 2016-09-23 00:13:04 +01:00
parent 559cea7fa9
commit f3ef9a4551
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -14,13 +14,13 @@ module Homebrew
end end
def fatal_development_tools_checks def fatal_development_tools_checks
if MacOS.prerelease? if ENV["TRAVIS"] || ARGV.homebrew_developer?
%w[ %w[
check_xcode_up_to_date
check_clt_up_to_date
] ]
else else
%w[ %w[
check_xcode_up_to_date
check_clt_up_to_date
] ]
end end
end end