From 3c4d12a5d57018ccdd2558005da9c3991afc122f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 20 Nov 2020 13:30:00 +0000 Subject: [PATCH] extend/os/mac/diagnostic: add more Xcode/CLT update instructions. Addresses issue mentioned in #9215. --- Library/Homebrew/extend/os/mac/diagnostic.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index 9f51d5ec92..025f234d64 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -424,8 +424,10 @@ module Homebrew locator = MacOS.sdk_locator source = if locator.source == :clt + update_instructions = MacOS::CLT.update_instructions "CLT" else + update_instructions = MacOS::Xcode.update_instructions "Xcode" end @@ -433,6 +435,7 @@ module Homebrew Your #{source} does not support macOS #{MacOS.version}. It is either outdated or was modified. Please update your #{source} or delete it if no updates are available. + #{update_instructions} EOS end end