From 9abfafbd408e6f2b4a0f4fc84c2970687df3a459 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Sat, 21 Dec 2024 19:39:04 +0800 Subject: [PATCH] formula: update `pour_bottle?` CLT error message We have received multiple bug reports from users complaining that `brew` tells them to install the CLT when they already have Xcode installed. See, for example, #18976. Let's try to avoid these issues from being opened by making the error message more explicit that we require the CLT at a specific location, and that installing Xcode does not suffice. --- Library/Homebrew/formula.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1edd503fdf78d..b715226c224a9 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -4286,9 +4286,11 @@ def pour_bottle?(only_if: nil, &block) lambda do |_| on_macos do T.bind(self, PourBottleCheck) - reason(+<<~EOS) - The bottle needs the Apple Command Line Tools to be installed. - You can install them, if desired, with: + reason(<<~EOS) + The bottle needs the Xcode Command Line Tools to be installed at /Library/Developer/CommandLineTools. + Development tools provided by Xcode.app are not sufficient. + + You can install the Xcode Command Line Tools, if desired, with: xcode-select --install EOS satisfy { MacOS::CLT.installed? }