Merge pull request #9223 from MikeMcQuaid/diagnostic_more_update_instructions
extend/os/mac/diagnostic: add more Xcode/CLT update instructions.
This commit is contained in:
commit
c376837544
@ -424,8 +424,10 @@ module Homebrew
|
|||||||
locator = MacOS.sdk_locator
|
locator = MacOS.sdk_locator
|
||||||
|
|
||||||
source = if locator.source == :clt
|
source = if locator.source == :clt
|
||||||
|
update_instructions = MacOS::CLT.update_instructions
|
||||||
"CLT"
|
"CLT"
|
||||||
else
|
else
|
||||||
|
update_instructions = MacOS::Xcode.update_instructions
|
||||||
"Xcode"
|
"Xcode"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -433,6 +435,7 @@ module Homebrew
|
|||||||
Your #{source} does not support macOS #{MacOS.version}.
|
Your #{source} does not support macOS #{MacOS.version}.
|
||||||
It is either outdated or was modified.
|
It is either outdated or was modified.
|
||||||
Please update your #{source} or delete it if no updates are available.
|
Please update your #{source} or delete it if no updates are available.
|
||||||
|
#{update_instructions}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user