From 395c0ac172a7a1edda00db7f2ddc208394840d3c Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 2 Dec 2024 12:04:38 -0800 Subject: [PATCH] Internal change. PiperOrigin-RevId: 702043346 --- runsc/boot/filter/BUILD | 1 + test/benchmarks/defs.bzl | 2 +- tools/gvisor2pcap/BUILD | 2 +- tools/ioctl_sniffer/BUILD | 2 +- webhook/BUILD | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runsc/boot/filter/BUILD b/runsc/boot/filter/BUILD index f432585ef..81642d1a6 100644 --- a/runsc/boot/filter/BUILD +++ b/runsc/boot/filter/BUILD @@ -38,6 +38,7 @@ go_library( secbench_test( name = "filter_bench_test", srcs = ["filter_bench_test.go"], + features = ["no_default_linker_script"], deps = [ ":filter", "//pkg/abi/linux", diff --git a/test/benchmarks/defs.bzl b/test/benchmarks/defs.bzl index 735b0dafe..a33cae163 100644 --- a/test/benchmarks/defs.bzl +++ b/test/benchmarks/defs.bzl @@ -14,6 +14,6 @@ def benchmark_test(name, tags = [], **kwargs): # Benchmark test binaries are built inside a bazel docker container in # OSS but are executed directly on the host. Use static binaries to # avoid hitting glibc incompatibility. - static = True, + features = ["fully_static_link"], **kwargs ) diff --git a/tools/gvisor2pcap/BUILD b/tools/gvisor2pcap/BUILD index bba039e39..d3b620a05 100644 --- a/tools/gvisor2pcap/BUILD +++ b/tools/gvisor2pcap/BUILD @@ -10,7 +10,7 @@ go_binary( srcs = [ "main.go", ], - static = True, + features = ["fully_static_link"], deps = [ "//pkg/buffer", "//pkg/log", diff --git a/tools/ioctl_sniffer/BUILD b/tools/ioctl_sniffer/BUILD index a34e39142..130adf0ad 100644 --- a/tools/ioctl_sniffer/BUILD +++ b/tools/ioctl_sniffer/BUILD @@ -44,9 +44,9 @@ go_binary( # `:ioctl_hook`'s actual output file. ":ioctl_hook", # keep ], + features = ["fully_static_link"], # Disable nogo tests because this has C++ dependencies. nogo = False, - static = True, visibility = [ "//:sandbox", ], diff --git a/webhook/BUILD b/webhook/BUILD index ae94391d0..448d88b28 100644 --- a/webhook/BUILD +++ b/webhook/BUILD @@ -30,7 +30,7 @@ pkg_tar( go_binary( name = "webhook", srcs = ["main.go"], + features = ["fully_static_link"], pure = "on", - static = "on", deps = ["//webhook/pkg/cli"], )