diff options
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r-- | src/luarocks/path.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index d740331b..8a56233f 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -3,12 +3,18 @@ | |||
3 | -- All paths are configured in this module, making it a single | 3 | -- All paths are configured in this module, making it a single |
4 | -- point where the layout of the local installation is defined in LuaRocks. | 4 | -- point where the layout of the local installation is defined in LuaRocks. |
5 | local path = {} | 5 | local path = {} |
6 | setmetatable(path, { __index = require("luarocks.core.path") }) | ||
7 | 6 | ||
7 | local core = require("luarocks.core.path") | ||
8 | local dir = require("luarocks.dir") | 8 | local dir = require("luarocks.dir") |
9 | local cfg = require("luarocks.core.cfg") | 9 | local cfg = require("luarocks.core.cfg") |
10 | local util = require("luarocks.util") | 10 | local util = require("luarocks.util") |
11 | 11 | ||
12 | path.rocks_dir = core.rocks_dir | ||
13 | path.versioned_name = core.versioned_name | ||
14 | path.path_to_module = core.path_to_module | ||
15 | path.deploy_lua_dir = core.deploy_lua_dir | ||
16 | path.deploy_lib_dir = core.deploy_lib_dir | ||
17 | |||
12 | --- Infer rockspec filename from a rock filename. | 18 | --- Infer rockspec filename from a rock filename. |
13 | -- @param rock_name string: Pathname of a rock file. | 19 | -- @param rock_name string: Pathname of a rock file. |
14 | -- @return string: Filename of the rockspec, without path. | 20 | -- @return string: Filename of the rockspec, without path. |