Monday, 19 August 2013

Is LuaRocks rockspec redefines module names using file names?

Is LuaRocks rockspec redefines module names using file names?

Is it normal for LuaRocks to ignore the module name in a rockspec, using
the filename instead?
build = {
type = "builtin",
modules = {
apricot = "src/apricot.lua",
["apricot.stuff"] = "src/apricot/seeds.lua",
-- `apricot.stuff` is renamed to `apricot.seeds`
-- when installed as a rock.
}
}
(Lua 5.1, LuaRocks 2.1.0)

No comments:

Post a Comment