From b850b50d9536d8dde7e0808862d7f876fc65aa6e Mon Sep 17 00:00:00 2001 From: Marc Doeberin Date: Wed, 8 Mar 2023 19:19:50 +0100 Subject: [PATCH] terraform 1.4.0 terraform: update build Signed-off-by: Rui Chen terraform: remove CGO workaround Co-authored-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> --- Aliases/{terraform@1.3 => terraform@1.4} | 0 Formula/terraform.rb | 12 ++---------- 2 files changed, 2 insertions(+), 10 deletions(-) rename Aliases/{terraform@1.3 => terraform@1.4} (100%) diff --git a/Aliases/terraform@1.3 b/Aliases/terraform@1.4 similarity index 100% rename from Aliases/terraform@1.3 rename to Aliases/terraform@1.4 diff --git a/Formula/terraform.rb b/Formula/terraform.rb index d84c0a8ef7619..e9e210316ce89 100644 --- a/Formula/terraform.rb +++ b/Formula/terraform.rb @@ -1,8 +1,8 @@ class Terraform < Formula desc "Tool to build, change, and version infrastructure" homepage "https://www.terraform.io/" - url "https://github.com/hashicorp/terraform/archive/v1.3.9.tar.gz" - sha256 "243fcc54910a41b58a1c7a9be1d0f875100a68f51fb64fbe499d9003c44fbf73" + url "https://github.com/hashicorp/terraform/archive/v1.4.0.tar.gz" + sha256 "1bcab87807eea8290bdd059ef7403ff98bafcd4a052e86251f3ace19a86a877b" license "MPL-2.0" head "https://github.com/hashicorp/terraform.git", branch: "main" @@ -30,14 +30,6 @@ class Terraform < Formula fails_with gcc: "5" def install - # v0.6.12 - source contains tests which fail if these environment variables are set locally. - ENV.delete "AWS_ACCESS_KEY" - ENV.delete "AWS_SECRET_KEY" - - # resolves issues fetching providers while on a VPN that uses /etc/resolv.conf - # https://github.com/hashicorp/terraform/issues/26532#issuecomment-720570774 - ENV["CGO_ENABLED"] = "1" - system "go", "build", *std_go_args(ldflags: "-s -w") end