Skip to content

Commit 3ff0b82

Browse files
committed
terragrunt: disable CGO on Linux Arm
Signed-off-by: botantony <[email protected]>
1 parent fe5f94e commit 3ff0b82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Formula/t/terragrunt.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Terragrunt < Formula
2727
conflicts_with "tgenv", because: "tgenv symlinks terragrunt binaries"
2828

2929
def install
30+
ENV["CGO_ENABLED"] = "0" if OS.linux? && Hardware::CPU.arm?
31+
3032
ldflags = %W[
3133
-s -w
3234
-X github.com/gruntwork-io/go-commons/version.Version=#{version}

0 commit comments

Comments
 (0)