membphis commented on a change in pull request #3335:
URL: https://github.com/apache/apisix/pull/3335#discussion_r566556935
##########
File path: apisix/cli/ngx_tpl.lua
##########
@@ -120,9 +120,12 @@ http {
# put extra_lua_path in front of the builtin path
# so user can override the source code
lua_package_path
"{*extra_lua_path*}$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;]=]
+ ..
[=[/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;]=]
Review comment:
I think we need to update the `lua_package_path` of `stream`
##########
File path: apisix/cli/ngx_tpl.lua
##########
@@ -120,9 +120,12 @@ http {
# put extra_lua_path in front of the builtin path
# so user can override the source code
lua_package_path
"{*extra_lua_path*}$prefix/deps/share/lua/5.1/?.lua;$prefix/deps/share/lua/5.1/?/init.lua;]=]
+ ..
[=[/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;]=]
..
[=[{*apisix_lua_home*}/?.lua;{*apisix_lua_home*}/?/init.lua;;{*lua_path*};";
lua_package_cpath "{*extra_lua_cpath*}$prefix/deps/lib64/lua/5.1/?.so;]=]
.. [=[$prefix/deps/lib/lua/5.1/?.so;;]=]
+ .. [=[/usr/lib64/lua/5.1/?.so;]=]
Review comment:
ditto
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]