Skip to content

Commit

Permalink
Merge pull request #15975 from iMichka/tf
Browse files Browse the repository at this point in the history
terraform: add audit for relicensing
  • Loading branch information
MikeMcQuaid authored Sep 7, 2023
2 parents d56b095 + a24d15d commit 12c8778
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Homebrew/formula_auditor.rb
Original file line number Diff line number Diff line change
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 12c8778

Please sign in to comment.