On Sat, Oct 9, 2010 at 12:39 AM, Alexander Gladysh <[email protected]> wrote: > On Sat, Oct 9, 2010 at 07:24, Alexander Gladysh <[email protected]> wrote: >> On Sat, Oct 9, 2010 at 06:08, Alexander Gladysh <[email protected]> wrote: >>> Also, please do not override source.protocol if it is set manually (I >>> could use this to workaround the lack of support for git+ssh.) > >> There is the problem with this mode of installation though. > >> Since I run LuaRocks with sudo, SSH uses "root" as username to login >> to the repository. > >> Obvously this does not work. > > Furthermore, even if I use usern...@host in the url, my SSH keys are > not visible to the process I run with sudo... > > Can't LR somehow clone git repo from the regular user?
I hate to be the guy who is always saying "no" to features, but doing sudo tricks within LuaRocks to alternate between regular and super user is something I really don't want to add. We've been there with GoboLinux Compile to try to make things more automatic for the user and still run the compilation unpriviledged for as long as possible, and while it does work most of the time, it is often a source of headache. One thing that was already suggested was to split the 'build' and 'install' parts of 'luarocks make' into two commands, more like 'make' and 'make install' behave. This way, one could sudo only the second step. Would that be an acceptable solution? -- Hisham _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
