From a90aa69b6ef8325513b734df6e84cfb0e6a4d05f 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 4b6aa4292b10..d4c7a3ed115c 100644 --- a/build/openresty/BUILD.openresty.bazel +++ b/build/openresty/BUILD.openresty.bazel @@ -268,8 +268,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)