File tree Expand file tree Collapse file tree 3 files changed +0
-8
lines changed Expand file tree Collapse file tree 3 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ if not os.getenv("KONG_BUSTED_RESPAWNED") then
72
72
os.exit (rc )
73
73
end
74
74
75
- pcall (require , " luarocks.loader" )
76
-
77
75
if os.getenv (" BUSTED_EMMY_DEBUGGER" ) then
78
76
emmy_debugger .init ({
79
77
debugger = os.getenv (" BUSTED_EMMY_DEBUGGER" ),
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env resty
2
2
3
3
setmetatable (_G , nil )
4
- pcall (require , " luarocks.loader" )
5
4
package.path = (os.getenv (" KONG_LUA_PATH_OVERRIDE" ) or " " ) .. " ./?.lua;./?/init.lua;" .. package.path
6
5
require (" kong.globalpatches" )({ cli = true })
7
6
math.randomseed () -- Generate PRNG seed
@@ -134,8 +133,6 @@ local args_str = table.concat(args_table, " ")
134
133
local inline_code = string.format ([[
135
134
setmetatable(_G, nil)
136
135
137
- pcall(require, "luarocks.loader")
138
-
139
136
package.path = (os.getenv("KONG_LUA_PATH_OVERRIDE") or "") .. "./?.lua;./?/init.lua;" .. package.path
140
137
141
138
require("kong.cmd.init")("%s", %s)
Original file line number Diff line number Diff line change 27
27
local pcall = pcall
28
28
29
29
30
- pcall (require , " luarocks.loader" )
31
-
32
-
33
30
assert (package.loaded [" resty.core" ], " lua-resty-core must be loaded; make " ..
34
31
" sure 'lua_load_resty_core' is not " ..
35
32
" disabled." )
You can’t perform that action at this time.
0 commit comments