mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_auditor: avoid pkg-config
dependency in core tap
This commit is contained in:
parent
2e780004c9
commit
a3ab1cba53
@ -363,8 +363,7 @@ module Homebrew
|
|||||||
|
|
||||||
# we want to allow uses_from_macos for aliases but not bare dependencies.
|
# we want to allow uses_from_macos for aliases but not bare dependencies.
|
||||||
# we also allow `pkg-config` for backwards compatibility in external taps.
|
# we also allow `pkg-config` for backwards compatibility in external taps.
|
||||||
# TODO: after migrating all `pkg-config` usage to `pkgconf`, do not allow `pkg-config` in core tap
|
if self.class.aliases.include?(dep.name) && !dep.uses_from_macos? && (dep.name != "pkg-config" || @core_tap)
|
||||||
if self.class.aliases.include?(dep.name) && !dep.uses_from_macos? && dep.name != "pkg-config"
|
|
||||||
problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
|
problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user