From f36bb3c6b0f89d36356444e53e1fcc1ef2ae5b7d Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 30 Oct 2021 20:04:13 +0800 Subject: [PATCH] formula_auditor: respect `using: :homebrew_curl` in resources too A resource can do `using: :homebrew_curl`, but, without this change, the audit will still use system `curl`. This fails quite predictably. Needed for Homebrew/homebrew-core#88330. --- Library/Homebrew/formula_auditor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index d558ce4494..c2c4feec61 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -553,7 +553,8 @@ module Homebrew ra = ResourceAuditor.new( resource, spec_name, - online: @online, strict: @strict, only: @only, except: @except + online: @online, strict: @strict, only: @only, except: @except, + use_homebrew_curl: resource.using == :homebrew_curl ).audit ra.problems.each do |message| problem "#{name} resource #{resource.name.inspect}: #{message}"