From 43755b3087007f8417c9eb1d54c7dd3000e3776c Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Wed, 30 Aug 2023 00:44:35 +0200 Subject: [PATCH] Disable static builds on mac, to avoid cgo link error --- BUILD.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 3b220f1bf..11096813a 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -85,7 +85,7 @@ go_binary( goarch = "amd64", goos = "darwin", pure = "off", - static = "on", + #static = "on", # With static enabled, I get the following error: "ld: library not found for -lcrt0.o" visibility = ["//visibility:public"], x_defs = {"main.gitCommit": "{STABLE_GIT_COMMIT}"}, ) @@ -97,7 +97,7 @@ go_binary( goarch = "arm64", goos = "darwin", pure = "off", - static = "on", + #static = "on", # With static enabled, I get the following error: "ld: library not found for -lcrt0.o" visibility = ["//visibility:public"], x_defs = {"main.gitCommit": "{STABLE_GIT_COMMIT}"}, )