3

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)

4

1 回答 1

1

是的,这是一个错误。我只是推了一个修复:

https://github.com/keplerproject/luarocks/commit/0b8605f5d53a9fef54ca17bf5447132327b0ae6e

如果此修复有任何问题,请让我知道(最好在错误跟踪器中)。谢谢!

于 2013-08-19T22:47:07.557 回答