From 4ba08b6f252fd90014c4f43b7c50aeb24d1f1de7 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 1 Jul 2018 21:29:23 -0300 Subject: Do we want LuaRocks itself to use whatever tree is in use? --- src/luarocks/path.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index 8e82beeb..c7ab9283 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua @@ -217,6 +217,13 @@ function path.use_tree(tree) cfg.deploy_bin_dir = path.deploy_bin_dir(tree) cfg.deploy_lua_dir = path.deploy_lua_dir(tree) cfg.deploy_lib_dir = path.deploy_lib_dir(tree) + + -- TODO Do we want LuaRocks itself to use whatever tree is in use? + -- package.path = dir.path(path.deploy_lua_dir(tree), "?.lua") .. ";" + -- .. dir.path(path.deploy_lua_dir(tree), "?/init.lua") .. ";" + -- .. package.path + -- package.cpath = dir.path(path.deploy_lib_dir(tree), "?." .. cfg.lib_extension) .. ";" + -- .. package.cpath end function path.rocks_tree_to_string(tree) -- cgit v1.2.3-55-g6feb