From 8f7897c5851117d817d59a23353a61e047aee900 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Wed, 24 Jun 2015 14:43:08 -0300 Subject: Make 'build' field in rockspecs mandatory. Rockspecs must have a 'build' field. If by any chance, it is not needed (see #379), add this: ````lua build = { type = "none" } ```` --- src/luarocks/type_check.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index 5e3bfb0d..65b4fc15 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua @@ -87,7 +87,8 @@ local rockspec_types = { copy_directories = { _any = string_1, }, - _more = true + _more = true, + _mandatory = true }, hooks = { platforms = {}, -- recursively defined below -- cgit v1.2.3-55-g6feb