Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(globalpatches): moved
require kong.constants
into the closure (#…
…12328) This is necessary because EE has changed `package.path` in this closure, and we continue leave that at the top level of this file, EE's e2e test will report the following error: ``` stack traceback: /usr/local/share/lua/5.1/kong/constants.lua:8: in main chunk [C]: in function 'require' /usr/local/share/lua/5.1/kong/globalpatches.lua:8: in main chunk [C]: in function 'require' /usr/local/bin/kong:6: in function 'file_gen' init_worker_by_lua(nginx.conf:118):46: in function <init_worker_by_lua(nginx.conf:118):44> [C]: in function 'xpcall' init_worker_by_lua(nginx.conf:118):53: in function <init_worker_by_lua(nginx.conf:118):51> ```
- Loading branch information