luarocks icon indicating copy to clipboard operation
luarocks copied to clipboard

Running luarocks build without zip installed results in a generic error

Open kulti opened this issue 2 years ago • 2 comments

The command

luarocks build --pack-binary-rock /usr/local/lib/luarocks/rocks-5.3/inspect/3.1.3-0/inspect-3.1.3-0.rockspec

shows me

...
Error: Failed packing /tmp/inspect-3.1.3-0.all.rock

When I try to make a src.rock using luarocks pack I see more informative error:

Error: Failed packing /tmp/inspect-3.1.3-0.src.rock - 'zip' program not found. Make sure zip is installed and is available in your PATH (or you may want to edit the 'variables.ZIP' value in file '/usr/local/etc/luarocks/config-5.3.lua')

Think, build command error output will be improved.

See also #920

kulti avatar Apr 26 '22 11:04 kulti

@kulti What version of LuaRocks are you running?

hishamhm avatar Jul 01 '22 19:07 hishamhm

It was on 3.8.0.

kulti avatar Jul 19 '22 08:07 kulti