From 89db6472ae66997a68561fc047110529787e3d09 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Mon, 8 Jul 2024 23:11:06 -0700 Subject: [PATCH] chore(build): do not download ngx_brotli with '--//:brotli=false' --- build/openresty/BUILD.openresty.bazel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/openresty/BUILD.openresty.bazel b/build/openresty/BUILD.openresty.bazel index 639013303359..700ebe22d7fd 100644 --- a/build/openresty/BUILD.openresty.bazel +++ b/build/openresty/BUILD.openresty.bazel @@ -266,8 +266,12 @@ configure_make( "@lua-kong-nginx-module//:all_srcs", "@lua-resty-events//:all_srcs", "@lua-resty-lmdb//:all_srcs", - "@ngx_brotli//:all_srcs", ] + select({ + "@kong//:brotli_flag": [ + "@ngx_brotli//:all_srcs", + ], + "//conditions:default": [], + }) + select({ "@kong//:wasmx_flag": [ "@ngx_wasmx_module//:all_srcs", # wasm_runtime has to be a "data" (target) instead of "build_data" (exec)