On Fri, Oct 15, 2010 at 09:38, Hisham <[email protected]> wrote: > 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, You should say "no" -- you're the maintainer :-) > 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? Two commands, run by hand -- not fun. You have to store state somewhere in between. But maybe two internal commands -- LR runs itself with sudo when it is time to install... Still, you're right, too messy. OK, allow me to not specify source in my final rockspec, but to pack it to my repo from my sources without installing rockspec locally on the machine. This should work. Alexander. _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
