Skip to content

Commit 3b3c11c

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Formula/z/zrok.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Zrok < Formula
77
license all_of: ["Apache-2.0", "BSD-3-Clause", "MIT"]
88
head "https://github.com/openziti/zrok.git", branch: "main"
99

10-
no_autobump! because: :requires_manual_review
10+
no_autobump! because: :bumped_by_upstream
1111

1212
bottle do
1313
sha256 cellar: :any_skip_relocation, arm64_tahoe: "69512d5888b0ab4f9a81010b546c4d1e7b48b52be839c8ff1cdd904a9bb1d7c1"
@@ -28,6 +28,8 @@ def install
2828
end
2929
end
3030

31+
ENV["CGO_ENABLED"] = "0" if OS.linux? && Hardware::CPU.arm?
32+
3133
ldflags = %W[
3234
-s -w
3335
-X github.com/openziti/zrok/build.Version=v#{version}

0 commit comments

Comments
 (0)