Merge pull request #17384 from Homebrew/gcc-dep-nghttp2

formula_auditor: add exemption for `nghttp2`
This commit is contained in:
Mike McQuaid 2024-05-29 12:50:44 +01:00 committed by GitHub
commit d1daf1f7e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -453,6 +453,9 @@ module Homebrew
return unless @core_tap return unless @core_tap
return unless Homebrew::SimulateSystem.simulating_or_running_on_linux? return unless Homebrew::SimulateSystem.simulating_or_running_on_linux?
return unless linux_only_gcc_dep?(formula) return unless linux_only_gcc_dep?(formula)
# https://github.com/Homebrew/homebrew-core/pull/171634
# https://github.com/nghttp2/nghttp2/issues/2194
return if formula.tap&.audit_exception(:linux_only_gcc_dependency_allowlist, formula.name)
problem "Formulae in homebrew/core should not have a Linux-only dependency on GCC." problem "Formulae in homebrew/core should not have a Linux-only dependency on GCC."
end end