On 14 May 2013 11:28, Thijs Schreijer <th...@thijsschreijer.nl> wrote: >> -----Original Message----- >> From: Thijs Schreijer [mailto:th...@thijsschreijer.nl] >> Sent: dinsdag 14 mei 2013 15:06 >> To: luarocks-developers@lists.sourceforge.net >> Subject: [Luarocks-developers] luarocks binary rock format >> >> I tried to find information on the binary rock format, but couldn't find >> any. From the rocks in the repo it seems they simply contain the rockspec >> and the directories; >> >> <binary-rock>\bin >> <binary-rock>\lua >> <binary-rock>\lib >> <binary-rock>\[modulename]-[version].rockspec > >> Is there any documentation on this? >> >> Thijs >> > > My initial attempts using this failed with some strange error, but they ended > up being a config issue on my machine. So the above does work. > > Still; is there any documentation on this? Should I be updating the wiki?
There are no docs, as far as I know. We've never committed to the format, relegating it as an implementation detail, more or less like the bytecode format is to Lua (and in fact the .rock format has changed silently between LuaRocks 1.0 and LuaRocks 2.0, though LR2 can read LR1 .rock files). I'm not sure if we _should_ set the .rock format in stone as of now: unlike the .rockspec format, it doesn't have versioning support yet. But yeah, I think documentation can't hurt, as long as it is not presented as a "specification" in the same sense that the rockspec format aims to be. To complete your description above: binary rock files created with LR2 also include a "rock_manifest" file in the archive root, and may include other files and directories deployed by the rockspec (eg, stuff set in copy_directories). -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers