Merge pull request #11483 from nandahkrishna/audit-elasticsearch-kibana

formula_auditor: add audit for elasticsearch and kibana
This commit is contained in:
Mike McQuaid 2021-06-03 09:16:46 +01:00 committed by GitHub
commit d2ddb80cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,6 +353,17 @@ module Homebrew
"which allows them to use our Linux bottles, which were compiled against system Glibc on CI."
end
ELASTICSEARCH_KIBANA_RELICENSED_VERSION = "7.11"
def audit_elasticsearch_kibana
return if formula.name != "elasticsearch" && formula.name != "kibana"
return unless @core_tap
return if formula.version < Version.new(ELASTICSEARCH_KIBANA_RELICENSED_VERSION)
problem "Elasticsearch and Kibana were relicensed to a non-open-source license from version 7.11. " \
"They must not be upgraded to version 7.11 or newer."
end
def audit_versioned_keg_only
return unless @versioned_formula
return unless @core_tap