Skip to content

Commit

Permalink
fix(build): use a more reliable way to replace websocket library
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Sep 13, 2024
1 parent 2c4a0b6 commit 89895f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,6 @@ kong_genrule(
mkdir -p ${BUILD_DESTDIR}/etc/kong/
cp ${WORKSPACE_PATH}/kong.conf.default ${BUILD_DESTDIR}/etc/kong/kong.conf.default
# TODO: remove this after lua-resty-websocket becomes a patch or merged to upstream
rm -rf ${BUILD_DESTDIR}/openresty/lualib/resty/websocket
# housecleaning
if [[ -d ${BUILD_DESTDIR}/kong/lib64 ]]; then
cp -r ${BUILD_DESTDIR}/kong/lib64/* ${BUILD_DESTDIR}/kong/lib/.
Expand Down
9 changes: 5 additions & 4 deletions build/openresty/BUILD.openresty.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,11 @@ configure_make(
"//conditions:default": [],
}),
postfix_script = select({
# macOS ln doesn't support -r/relative path
"@platforms//os:macos": "ln -sf openresty/nginx/sbin/nginx openresty/bin/openresty",
"//conditions:default": "ln -srf openresty/nginx/sbin/nginx openresty/bin/openresty",
}),
# macOS ln doesn't support -r/relative path
"@platforms//os:macos": "ln -sf openresty/nginx/sbin/nginx openresty/bin/openresty",
"//conditions:default": "ln -srf openresty/nginx/sbin/nginx openresty/bin/openresty",
}) + # TODO: remove this after lua-resty-websocket becomes a patch or merged to upstream
" && rm -rf $INSTALLDIR/lualib/resty/websocket",
targets = [
"-j " + KONG_VAR["NPROC"],
"install -j" + KONG_VAR["NPROC"],
Expand Down

0 comments on commit 89895f6

Please sign in to comment.