From 4efc1276b3d6594338b34bc53701f74b9d4214b7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Jan 2020 12:12:26 +0000 Subject: [PATCH] dev-cmd/audit: make git audit only --new-formula only. Useful in e.g. https://github.com/Homebrew/homebrew-core/pull/46550 to avoid repeatedly triggering a failing audit. --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 0da9155ed5..78925caf01 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -407,7 +407,7 @@ module Homebrew problem "Dependency #{dep} does not define option #{opt.name.inspect}" end - problem "Don't use git as a dependency (it's always available)" if dep.name == "git" + problem "Don't use git as a dependency (it's always available)" if @new_formula && dep.name == "git" problem "Dependency '#{dep.name}' is marked as :run. Remove :run; it is a no-op." if dep.tags.include?(:run)