Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Kong version ($ kong version
)
3.9
Current Behavior
when use the bazel to build kong with additional module with the following commands
sed -i '/# external modules/a \ \ \ \ "--add-module=/ModSecurity-nginx",' kong/build/openresty/BUILD.openresty.bazel
bazel build //build:kong --config release --verbose_failures
#14 599.8 (09:18:51) [529 / 557] [Prepa] action 'SolibSymlink _solib_k8/_U_A_Aopenssl_S_S_Copenssl___Uexternal_Sopenssl_Sopenssl_Slib/libssl.so.3'
#14 601.5 (09:18:52) [541 / 557] Foreign Cc - Configure: Building openresty; 1s local ... (2 actions running)
#14 603.1 (09:18:54) ERROR: /root/.cache/bazel/_bazel_root/d5742f123fe1fc789bc2468bf73ca667/external/luarocks/BUILD.bazel:82:22: Luarocks: Install luarocks with target configuration failed: (Exit 1): bash failed: error executing Action command (from target @@luarocks//:luarocks_target)
#14 603.1 (cd /root/.cache/bazel/_bazel_root/d5742f123fe1fc789bc2468bf73ca667/execroot/_main && \
#14 603.1 exec env - \
#14 603.1 /bin/bash -c 'bazel-out/k8-opt/bin/external/luarocks/luarocks_target.rendered.sh bazel-out/k8-opt/bin/external/luarocks/luarocks_target.log')
#14 603.1 # Configuration: 30ce272573d38bcfe24ea670125bfd05f1ec2be4a953128046b3bbdfea844452
#14 603.1 # Execution platform: @@platforms//host:host
#14 603.1 Warning: Failed searching manifest: Failed loading manifest for https://luarocks.org: Error loading file: [string "/var/cache/luarocks/https___luarocks.org/mani..."]:203354: main function has more than 65536 constants
#14 603.1 Warning: Failed searching manifest: Failed loading manifest for [https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/:](https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/) Error loading file: [string "/var/cache/luarocks/https___raw.githubusercon..."]:203221: main function has more than 65536 constants
#14 603.1 Warning: Failed searching manifest: Failed loading manifest for https://loadk.com/luarocks/: Error loading file: [string "/var/cache/luarocks/https___loadk.com_luarock..."]:203295: main function has more than 65536 constants
#14 603.1
#14 603.1 Error: No results matching query were found for Lua 5.1.
#14 603.1 To check if it is available for other Lua versions, use --check-lua-versions.
#14 603.1 (09:18:54) [542 / 557] Foreign Cc - Configure: Building openresty; 3s local ... (2 actions, 1 running)
#14 603.3 Target //build:kong failed to build
#14 603.4 (09:18:54) INFO: Elapsed time: 602.981s, Critical Path: 432.27s
#14 603.4 (09:18:54) INFO: 545 processes: 176 internal, 369 local.
#14 603.4 (09:18:54) ERROR: Build did NOT complete successfully
#14 603.5
Expected Behavior
the build should work
Steps To Reproduce
take the same steps
Anything else?
os: debian bookworm
build environment: Docker images