i patched the luarocks fetch/git.lua file with

if not fs.execute(git_cmd,'submodule','init')
    return nil, "Failed init submodules git repository."
end
if not fs.execute(git_cmd,'submodule','update') then
    return nil, "Failed update submodules git repository."
end

it works when run without super user privileges:
luarocks install
https://github.com/lipp/lua-websockets/raw/master/rockspecs/lua-websockets-scm-1.rockspec
--local

executed as super user, it fails
sudo luarocks install
https://github.com/lipp/lua-websockets/raw/master/rockspecs/lua-websockets-scm-1.rockspec
i tracked down the error: sudo git submodule update just not works!

following the git docu, it is not recommended to run git as super user at all.
shouldn't the luarocks fetch operation switch to "normal" user temporarily?

On Tue, Feb 28, 2012 at 12:25 PM, Gerhard Lipp <[email protected]> wrote:
> hello!
> i'd like to
>
> luarocks install
> https://github.com/lipp/lua-websockets/raw/master/rockspecs/lua-websockets-scm-1.rockspec
>
> the git repository contains a git submodule, which apparently does not
> get initialized.
> this could be done by
>
> git submodule init
> git submodule update
>
> after cloning.
>
> btw: have a look at https://github.com/lipp/lua-websockets
>
> any advices?
> best regards,
> gerhard

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to