From 69673221d454c2dd6d9886db0645874ee9e5b132 Mon Sep 17 00:00:00 2001 From: Osama Albahrani <54853250+osalbahr@users.noreply.github.com> Date: Fri, 1 Aug 2025 03:28:00 +0300 Subject: [PATCH] resource_auditor.rb: Skip https audit for curl dependencies The error message to be fixed: ```console % brew audit --strict --online xz xz * Stable: The source URL http://downloads.sourceforge.net/project/lzmautils/xz-5.8.1.tar.gz should use HTTPS rather than HTTP Error: 1 problem in 1 formula detected. % brew edit xz # change it to https % brew audit --strict --online xz xz * Stable: should always include at least one HTTP mirror Error: 1 problem in 1 formula detected. ``` - Fixes https://github.com/Homebrew/brew/issues/15728 --- Library/Homebrew/resource_auditor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/resource_auditor.rb b/Library/Homebrew/resource_auditor.rb index 77216138e6..8f20881f21 100644 --- a/Library/Homebrew/resource_auditor.rb +++ b/Library/Homebrew/resource_auditor.rb @@ -151,7 +151,8 @@ module Homebrew raise HomebrewCurlDownloadStrategyError, url if strategy <= HomebrewCurlDownloadStrategy && !Formula["curl"].any_version_installed? - if (http_content_problem = curl_check_http_content( + # Skip https audit for curl dependencies + if !curl_dep && (http_content_problem = curl_check_http_content( url, "source URL", specs:,