From 631db5502ddbc47daa63b4f21961f9550f611941 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 26 Aug 2022 12:38:03 +0000 Subject: [PATCH] diagnostic: automatically tap homebrew/core. Otherwise, this just dies with `Error: No available tap homebrew/core.`. --- Library/Homebrew/diagnostic.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index ef97876392..178b346167 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -591,7 +591,11 @@ module Homebrew def check_coretap_integrity coretap = CoreTap.instance - return if !coretap.installed? && EnvConfig.install_from_api? + unless coretap.installed? + return if EnvConfig.install_from_api? + + CoreTap.ensure_installed! + end broken_tap(coretap) || examine_git_origin(coretap.path, Homebrew::EnvConfig.core_git_remote) end