Skip to content

Commit

Permalink
terraform 1.4.0
Browse files Browse the repository at this point in the history
terraform: update build

terraform: remove CGO workaround

Closes #125142.

Signed-off-by: Rui Chen <[email protected]>
Co-authored-by: Sean Molenaar <[email protected]>
Signed-off-by: Ruoyu Zhong <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
2 people authored and BrewTestBot committed Mar 9, 2023
1 parent 5814861 commit f0e0fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
File renamed without changes.
12 changes: 2 additions & 10 deletions Formula/terraform.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f0e0fbb

Please sign in to comment.