spacewander commented on a change in pull request #4246:
URL: https://github.com/apache/apisix/pull/4246#discussion_r632192696



##########
File path: apisix/cli/apisix.lua
##########
@@ -25,7 +25,7 @@ local pkg_path = apisix_home .. "/deps/share/lua/5.1/?.lua;"
 
 -- modify the load path to load our dependencies
 package.cpath = pkg_cpath .. pkg_cpath_org
-package.path  = pkg_path .. pkg_path_org
+package.path  = pkg_path .. pkg_path_org .. ";" .. apisix_home .. "/?.lua"

Review comment:
       It's not a good idea. What if people try to install APISIX to another 
directory instead of `/usr/local/apisix`, like `/usr/share/lua/5.1`?




-- 
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]


Reply via email to