LuaRocks 使用文件名来忽略 Rockspec 中的模块名称是否正常?
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)