luarocks / luarocks-site

LuaRocks website and module host
http://luarocks.org
176 stars 36 forks source link

Warnings about name collision of modules #19

Open moteus opened 9 years ago

moteus commented 9 years ago

I think it would be convinient to be able check if this module name already used in some library. E.g. LuaSocket library uses not only socket module name but also mime and ltn12. But some libraries may use same base module name (e.g. LuaCov and LuaCov-coveralls) libraryes use same namespace luacov. So I think luarocks upload and web UI should get warning if some one try create new library that contein modules with such names.

@hishamhm ping.

hishamhm commented 9 years ago

That would be awesome to have, but to implement that we would have to have a list of modules that a rockspec generates. We don't have that (yet) because to produce this list we'd have to run the build (and it could produce different lists from platform to platform). I don't know a good solution for this.

moteus commented 9 years ago

I think it is possible for builtin build mode. May be luarocks also could provide manual list in description section for other types. (Not good idea I know)

hishamhm commented 9 years ago

Yes, it's possible for builtin but it would be an incomplete solution. Well, since 80% of rocks use builtin maybe it's not that bad of an idea...