From 299b0c587e695b80ece3c8b0da8062eb404218e5 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Tue, 5 Mar 2024 14:34:12 -0500 Subject: [PATCH] k6: turn off CGO turn off CGO, it has some glibc linker issue on linux, upstream has made the similar change on 0.26.0 release. see https://github.com/grafana/k6/blob/master/release%20notes/v0.26.0.md?plain=1#L127 Signed-off-by: Rui Chen --- Formula/k/k6.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/k/k6.rb b/Formula/k/k6.rb index a5e1341124f4..ea4b23cc0249 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")