Skip to content

Commit 7857fbb

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

projects/envoy/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
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
24+
export BAZELISK_SKIP_CERT_CHECK=true
2325

2426
declare -r FUZZ_TARGET_QUERY='
2527
let all_fuzz_tests = attr(tags, "fuzz_target", "test/...") in
@@ -120,6 +122,11 @@ then
120122
fi
121123
)"
122124

125+
bazel fetch ${EXTRA_BAZEL_FLAGS} ${OSS_FUZZ_TARGETS[*]} || true
126+
OUTPUT_BASE=$(bazel info output_base 2>/dev/null || echo "")
127+
if [ -n "$OUTPUT_BASE" ]; then
128+
find "$OUTPUT_BASE/external" -name port_def.inc -exec sed -i 's/# define PROTOBUF_CONSTINIT constinit/# define PROTOBUF_CONSTINIT/g' {} + || true
129+
fi
123130

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

0 commit comments

Comments
 (0)