diagnostic: warn on outdated OS X versions.
We don't have CI or new bottles for them so they aren't supported well so we should warn users. Closes Homebrew/homebrew#47812.
This commit is contained in:
parent
7076ed890a
commit
a46fa38ea7
@ -304,11 +304,19 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_unsupported_osx
|
def check_for_unsupported_osx
|
||||||
if !ARGV.homebrew_developer? && OS::Mac.prerelease? then <<-EOS.undent
|
return if ARGV.homebrew_developer?
|
||||||
You are using OS X #{MacOS.version}.
|
if OS::Mac.prerelease?
|
||||||
We do not provide support for this pre-release version.
|
<<-EOS.undent
|
||||||
You may encounter build failures or other breakages.
|
You are using OS X #{MacOS.version}.
|
||||||
EOS
|
We do not provide support for this pre-release version.
|
||||||
|
You may encounter build failures or other breakages.
|
||||||
|
EOS
|
||||||
|
elsif OS::Mac.outdated_release?
|
||||||
|
<<-EOS.undent
|
||||||
|
You are using OS X #{MacOS.version}.
|
||||||
|
We (and Apple) do not provide support for this old version.
|
||||||
|
You may encounter build failures or other breakages.
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user