I try install vararg library and get this error.

>luarocks install vararg
Error: Build error: Failed copying contents of 'lua' directory: Failed
copying lua to g:\lua\LuaRocks\rocks//lib/luarocks/rocks/vararg/scm-0/lua

builtin.lua has:

if ok then
   if fs.is_dir("lua") then
      ok, err = fs.copy_contents("lua", luadir)
      if not ok then err = "Failed copying contents of 'lua' directory:
"..err end
   end
end

But this code run in current dir, not in project dir. Is it correct?
Also fs.is_dir (is_dir from win32/tools.lua) always true
I add debug print:
  print("should false: ", fs.is_dir("lua-lua-lua-lua"))
  io.write("cwd: ") os.execute("cd")
Result:
  should false:   true
  cwd: F:\e\Projects\lua-odbc

And I do not find in doc why luarocks try copy `lua` directory.

PS. I update vararg to support Lua 5.2 and fix some minor bugs. 
How i can post this changes?


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to