From e63eff22014d1a8ede20312f715fe062702abe2c Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Tue, 8 Jan 2019 00:26:22 -0800 Subject: [PATCH] Treat future SDKs as "latest" Some SDKs return a number higher than the hard-coded `latest_version` in this file. With the current `==` check, those higher version numbers are treated as "not the latest". This prevents machines with higher-versioned SDKs from being able to use Homebrew. To resolve that problem, this PR changes the check to `>=`, which allows machines with higher-versioned SDKs to also use Homebrew to install packages. --- Library/Homebrew/os/mac/xcode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index b479da3745..0f8e62db7b 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -44,7 +44,7 @@ module OS end def latest_sdk_version? - OS::Mac.version == OS::Mac.latest_sdk_version + OS::Mac.version >= OS::Mac.latest_sdk_version end def needs_clt_installed?