From 68a54b3f1bd8d26aca41b2a2bada1af7ac32f7ff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 9 Jul 2018 11:04:32 -0300 Subject: luarocks, luarocks-admin: load cfg first, for luarocks.loader Load luarocks.core.cfg first so that luarocks.loader knows it is running inside LuaRocks. --- src/bin/luarocks | 3 +++ src/bin/luarocks-admin | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/bin/luarocks b/src/bin/luarocks index 18a6179b..d982530c 100755 --- a/src/bin/luarocks +++ b/src/bin/luarocks @@ -1,5 +1,8 @@ #!/usr/bin/env lua +-- Load cfg first so that the loader knows it is running inside LuaRocks +local cfg = require("luarocks.core.cfg") + local loader = require("luarocks.loader") local cmd = require("luarocks.cmd") diff --git a/src/bin/luarocks-admin b/src/bin/luarocks-admin index 77a51872..71e17b55 100755 --- a/src/bin/luarocks-admin +++ b/src/bin/luarocks-admin @@ -1,5 +1,8 @@ #!/usr/bin/env lua +-- Load cfg first so that luarocks.loader knows it is running inside LuaRocks +local cfg = require("luarocks.core.cfg") + local loader = require("luarocks.loader") local cmd = require("luarocks.cmd") -- cgit v1.2.3-55-g6feb