See this post for a workaround
https://github.com/stevedonovan/Penlight/issues/56#issuecomment-15883638


From: Thijs Schreijer [mailto:th...@thijsschreijer.nl]
Sent: donderdag 4 april 2013 9:37
To: luarocks-developers@lists.sourceforge.net
Subject: [Luarocks-developers] better error description

While installing penlight (this rockspec: 
http://luarocks.org/repositories/rocks/penlight-1.1.0-1.rockspec  ) I got and 
error; "Error: Build error: Failed copying contents of 'lua' directory."

The cause was a lua source file not mentioned in the rockpec, nested in a 
subdirectory ("platf") only used by that file ("lua/pl/platf/luajava.lua"). 
Apparently the "CP" command does copy files recursively, but it doesn't create 
the directory structure. So the rockspec doesn't mention "platf", so luarocks 
doesn't create the directory, and then "CP" command fails, without an error.

My request would be to make errors like these (took me 3 hours to find it) give 
a more descriptive error message. That is assuming the "CP" command does the 
same on unix, otherwise it would be a platform specific bug.

Regards
Thijs
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to