extend/os/mac/diagnostic: add more Xcode/CLT update instructions.

Addresses issue mentioned in #9215.
This commit is contained in:
Mike McQuaid 2020-11-20 13:30:00 +00:00
parent bbfcd30ce3
commit 3c4d12a5d5
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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