Skip to content

Commit

Permalink
Merge pull request #139538 from iMichka/terraform
Browse files Browse the repository at this point in the history
hashicorp: deprecate and add caveat
  • Loading branch information
p-linnane committed Apr 5, 2024
2 parents 1698558 + 1c7b99b commit 4782218
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Formula/t/terraform.rb
Expand Up @@ -26,6 +26,9 @@ class Terraform < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "67fee97d6db4e6fb1d53a3c0f5bb092b11cd41966a36078a5d846272d59bb8ea"
end

# https://www.hashicorp.com/blog/hashicorp-adopts-business-source-license
deprecate! date: "2024-04-04", because: "changed its license to BUSL on the next release"

depends_on "go" => :build

conflicts_with "tfenv", because: "tfenv symlinks terraform binaries"
Expand All @@ -38,6 +41,16 @@ def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end

def caveats
<<~EOS
We will not accept any new Terraform releases in homebrew/core (with the BUSL license).
The next release changed to a non-open-source license:
https://www.hashicorp.com/blog/hashicorp-adopts-business-source-license
See our documentation for acceptable licences:
https://docs.brew.sh/License-Guidelines
EOS
end

test do
minimal = testpath/"minimal.tf"
minimal.write <<~EOS
Expand Down

0 comments on commit 4782218

Please sign in to comment.