Skip to content

Commit bc21f50

Browse files
committed
envoy: fix broken build
1 parent a09cb73 commit bc21f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/envoy/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# https://github.com/google/oss-fuzz/pull/12858), to overcome the issue
2121
# mentioned in https://github.com/bazelbuild/bazel/issues/23681.
2222
export USE_BAZEL_VERSION=7.4.0
23+
export GOPROXY=https://goproxy.cn,direct
2324

2425
declare -r FUZZ_TARGET_QUERY='
2526
let all_fuzz_tests = attr(tags, "fuzz_target", "test/...") in
@@ -120,6 +121,8 @@ then
120121
fi
121122
)"
122123

124+
bazel fetch ${EXTRA_BAZEL_FLAGS} ${OSS_FUZZ_TARGETS[*]} || true
125+
find $(bazel info output_base)/external -name port_def.inc -exec sed -i 's/# define PROTOBUF_CONSTINIT constinit/# define PROTOBUF_CONSTINIT/g' {} + || true
123126

124127
# Asssuming we have ~32 cores and ~28.8 GiB RAM. By limiting the
125128
# number of CPUs (--local_cpu_resources) we limit the per-CPU mem-usage.

0 commit comments

Comments
 (0)