diff --git a/Formula/k/k6.rb b/Formula/k/k6.rb index a5e1341124f48..ea4b23cc02496 100644 --- a/Formula/k/k6.rb +++ b/Formula/k/k6.rb @@ -19,6 +19,8 @@ class K6 < Formula depends_on "go" => :build def install + ENV["CGO_ENABLED"] = "0" + system "go", "build", *std_go_args(ldflags: "-s -w") generate_completions_from_executable(bin/"k6", "completion")