Skip to content

Commit

Permalink
terraform: add audit for relicensing
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Sep 6, 2023
1 parent d5d7478 commit a24d15d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Homebrew/formula_auditor.rb
Expand Up @@ -497,6 +497,17 @@ def audit_elasticsearch_kibana
"They must not be upgraded to version 7.11 or newer."
end

TERRAFORM_RELICENSED_VERSION = "1.6"

def audit_terraform
return if formula.name != "terraform"
return unless @core_tap
return if formula.version < Version.new(TERRAFORM_RELICENSED_VERSION)

problem "Terraform was relicensed to a non-open-source license from version 1.6. " \
"It must not be upgraded to version 1.6 or newer."
end

def audit_keg_only_reason
return unless @core_tap
return unless formula.keg_only?
Expand Down

0 comments on commit a24d15d

Please sign in to comment.