On Sun, Oct 10, 2010 at 10:46 PM, Alexander Gladysh <[email protected]> wrote:
> I want to store some metainformation in a rockspec file. But validator
> wouldn't let me do it.
The validator _is_ a cool feature (very pretty code, BTW) but here it
gets in the way.
I would rather propose that there is a single top-level table:
meta = {
-- anything!
}
Anything, except functions ;) Although seeing as LR allows the
execution of arbitrary scripts at super-user level using the
post-install hook, I suppose such security anxieties are pointless -
but if functions _are_ allowed, then eventually rockspecs will become
programs.
Over-engineered solution for the especially keen: provide a schema
field which points to a file which describes exactly what can be in
the meta field (see luarocks/type_check.lua)
steve d.
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers