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 29, 2024
1 parent 8210e88 commit 1a5bbfa
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

1 comment on commit 1a5bbfa

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:1a5bbfa7d5820254531c809eecffec104e02b36a
Artifacts available https://github.com/Kong/kong/actions/runs/11090438621

Please sign in to comment.