Hello,

Ignacio pointed out in the issue tracker that the fact that both the
luarocks.config module and the configuration file config.lua have the
same name cause problems when "./?.lua" is in the package path.

https://github.com/keplerproject/luarocks/issues/41

This is particularly evident on Windows, where the case-insensitive
filesystem makes lua resolve require("luarocks.config") with
c:\LuaRocks\config.lua when lua is launched from c:\. It also happens
on Linux if you are in /etc, since the default config installs to
/etc/luarocks/config.lua.

The two files being confused are:
* config.lua, the system-wide configuration file. On Unix, we install
one of them at $sysconfdir/luarocks/config.lua (for example,
/etc/luarocks/config.lua), and there is a per-user config file at
~/.luarocks/config.lua. I think this naming is fine.
* The other file is the luarocks.config module, which is generated
during installation. It contains site-local information such as the
install prefix, where to find the configuration file and any other
parameters defined by the "configure" script.

My plan is to rename the second one to luarocks.site_config. Any
objections/comments/suggestions?

-- 
-- Hisham
http://hisham.hm/ - http://colorbleed.com.br/

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to