aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r--src/luarocks/path.lua8
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.
5local path = {} 5local path = {}
6setmetatable(path, { __index = require("luarocks.core.path") })
7 6
7local core = require("luarocks.core.path")
8local dir = require("luarocks.dir") 8local dir = require("luarocks.dir")
9local cfg = require("luarocks.core.cfg") 9local cfg = require("luarocks.core.cfg")
10local util = require("luarocks.util") 10local util = require("luarocks.util")
11 11
12path.rocks_dir = core.rocks_dir
13path.versioned_name = core.versioned_name
14path.path_to_module = core.path_to_module
15path.deploy_lua_dir = core.deploy_lua_dir
16path.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.