Skip to content

Commit

Permalink
k6: turn off CGO
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chenrui333 committed Mar 5, 2024
1 parent 857d2de commit 299b0c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/k/k6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 299b0c5

Please sign in to comment.