Skip to content

Commit

Permalink
terraform: deprecate and add caveat
Browse files Browse the repository at this point in the history
Inform users that we will disable this forumula one day given there will
be no more version updates in homebrew-core due to the license change
  • Loading branch information
iMichka committed Apr 4, 2024
1 parent 4e6c2ca commit 86db907
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: "2023-09-27", because: "will change 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 will change 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 86db907

Please sign in to comment.