dev-cmd/audit: enforce uses_from_macos only if core tap

This commit is contained in:
Seeker 2020-07-27 19:25:26 -07:00
parent 06f078fad2
commit 4bd6c343d0
2 changed files with 3 additions and 2 deletions

View File

@ -388,7 +388,8 @@ module Homebrew
"use the canonical name '#{dep.to_formula.full_name}'."
end
if @new_formula &&
if @core_tap &&
@new_formula &&
dep_f.keg_only? &&
dep_f.keg_only_reason.provided_by_macos? &&
dep_f.keg_only_reason.applicable? &&

View File

@ -343,7 +343,7 @@ module Homebrew
subject { fa }
let(:fa) do
formula_auditor "foo", <<~RUBY, new_formula: true
formula_auditor "foo", <<~RUBY, new_formula: true, core_tap: true
class Foo < Formula
url "https://brew.sh/foo-1.0.tgz"
homepage "https://brew.sh"