keplerproject/luarocks — Issue #56: Compatibility issue with rockspecs with an init.lua file
Author: rpavlik
Created: 2012-02-08 19:18:46+00:00
State: open

Some rocks have their "main" module in a directory with a file named `init.lua` such as lxsh. Somewhere between luarocks 2.0.1 as installed on my ubuntu system and 2.0.7.1, the behavior of processing a file like this changed: https://github.com/xolox/lua-lxsh/blob/ee16ce4903616030a26c15c4f8ce2222434f0ade/etc/template.rockspec

I think this can be fixed in the rockspec, but am unsure if that would actually break compatibility with older versions. There may need to be a special case for when modules specify something like `['lxsh.init'] = 'src/init.lua'` to interpret what they really mean.

Here's a bug I opened in lxsh related to this issue: https://github.com/xolox/lua-lxsh/issues/2