Merge pull request #8114 from SeekingMeaning/audit/uses_from_macos

dev-cmd/audit: enforce uses_from_macos only if core tap
This commit is contained in:
Mike McQuaid 2020-07-29 11:26:20 +01:00 committed by GitHub
commit b36ac5fb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"