diff --git a/.bazelrc b/.bazelrc index 5cabd87c0e54f..e071e336ef624 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,6 +6,9 @@ common --@toolchains_llvm//toolchain/config:compiler-rt=False build --linkopt --unwindlib=libgcc build --linkopt -stdlib=libc++ +# By default build without CGO +build --@rules_go//go/config:pure + common:clang-19 --extra_toolchains=@llvm_19_toolchain//:all build:system-clang --extra_toolchains=@local_config_cc_toolchains//:all diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 3c475ceb56f85..2aff3a61c7cc0 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -5574,7 +5574,7 @@ "@@rules_rust~//rust:extensions.bzl%rust": { "general": { "bzlTransitiveDigest": "CILmbFT+SqDrQsN+vw/1IK15ku1PEmcYfkxJ53yyIvE=", - "usagesDigest": "N7it+zhc3dkqHc4KtgIXxFFRhT0KdBYoegcwutuRhl4=", + "usagesDigest": "glh6v9y4udxz+afNeq1OFjowZm/6CEnkLoGTAqunkKA=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, diff --git a/bazel/packaging/bin_wrapper/BUILD b/bazel/packaging/bin_wrapper/BUILD index e20401b5b5621..ef1582d7f81c6 100644 --- a/bazel/packaging/bin_wrapper/BUILD +++ b/bazel/packaging/bin_wrapper/BUILD @@ -5,7 +5,6 @@ load("@rules_go//go:def.bzl", "go_binary") go_binary( name = "rpk", srcs = ["main.go"], - pure = "on", visibility = ["//bazel/packaging:__pkg__"], x_defs = { "BinaryPath": "/opt/redpanda/libexec/rpk", @@ -15,7 +14,6 @@ go_binary( go_binary( name = "redpanda", srcs = ["main.go"], - pure = "on", visibility = ["//bazel/packaging:__pkg__"], x_defs = { "BinaryPath": "/opt/redpanda/libexec/redpanda", diff --git a/src/go/rpk/cmd/rpk/BUILD b/src/go/rpk/cmd/rpk/BUILD index 4dc310eedcd52..7a8e1939270d7 100644 --- a/src/go/rpk/cmd/rpk/BUILD +++ b/src/go/rpk/cmd/rpk/BUILD @@ -11,6 +11,5 @@ go_library( go_binary( name = "rpk", embed = [":rpk_lib"], - pure = "on", visibility = ["//visibility:public"], )