diff options
| author | Dominyk Tiller | 2016-08-30 03:54:24 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-08-30 03:54:24 +0100 |
| commit | 1408b5ffd4dfbac840580ea9946237d8164941d8 (patch) | |
| tree | 2275cddd0488848dbcc644ebf726f6654a8b9325 | |
| parent | 8e29cf1b1d39f5d86aaeb702597aa34d97cd763a (diff) | |
| download | brew-1408b5ffd4dfbac840580ea9946237d8164941d8.tar.bz2 | |
diagnostic: add strict_development_tools_checks
| -rw-r--r-- | Library/Homebrew/extend/os/mac/diagnostic.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 120e5d15c..11d497d60 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -12,6 +12,13 @@ module Homebrew ] end + def strict_development_tools_checks + %w[ + check_xcode_up_to_date + check_clt_up_to_date + ] + end + def check_for_unsupported_osx return if ARGV.homebrew_developer? @@ -51,10 +58,17 @@ module Homebrew def check_xcode_up_to_date return unless MacOS::Xcode.installed? && MacOS::Xcode.outdated? + if OS::Mac.prerelease? + xcode_select_nudge = <<-EOS.undent + If #{MacOS::Xcode.latest_version} is installed, you may need to: + sudo xcode-select --switch /path/to/Xcode-beta.app + EOS + end + <<-EOS.undent Your Xcode (#{MacOS::Xcode.version}) is outdated Please update to Xcode #{MacOS::Xcode.latest_version}. - #{MacOS::Xcode.update_instructions} + #{MacOS::Xcode.update_instructions}#{xcode_select_nudge} EOS end |
