aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/bin/luarocks10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/luarocks b/src/bin/luarocks
index 56caaa60..8a74d033 100755
--- a/src/bin/luarocks
+++ b/src/bin/luarocks
@@ -1,9 +1,17 @@
1#!/usr/bin/env lua 1#!/usr/bin/env lua
2 2
3if os.getenv("LUAROCKS_DEBUG") then
4 local tl = require("tl")
5 tl.path = "./src/?.tl"
6 tl.loader()
7 local tl_loader = table.remove(package.searchers, 2)
8 table.insert(package.searchers, 1, tl_loader)
9end
10
3-- Load cfg first so that the loader knows it is running inside LuaRocks 11-- Load cfg first so that the loader knows it is running inside LuaRocks
12
4local cfg = require("luarocks.core.cfg") 13local cfg = require("luarocks.core.cfg")
5 14
6local loader = require("luarocks.loader")
7local cmd = require("luarocks.cmd") 15local cmd = require("luarocks.cmd")
8 16
9local description = "LuaRocks main command-line interface" 17local description = "LuaRocks main command-line interface"