From 8039201b53f3c408a423b58b75ad96e82596a608 Mon Sep 17 00:00:00 2001 From: Eloy Coto Date: Mon, 2 Dec 2019 09:15:10 +0100 Subject: [PATCH] Install: Try rock before rockspec. In APICast we have a few issues around rockspec that it's not valid at all and dependencies are not be able to install. With this change, by default all will be installed with rock, and if it's not present will use the rockspec. Signed-off-by: Eloy Coto --- src/rover/install.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rover/install.lua b/src/rover/install.lua index c306576..aa84684 100644 --- a/src/rover/install.lua +++ b/src/rover/install.lua @@ -32,13 +32,13 @@ end -- search. local function get_dep_spec(name, version) local query = search.make_query(name:lower(), version) - query["arch"] = "rockspec" + query["arch"] = "rock" local spec = search.find_suitable_rock(query) if spec then return spec end - query["arch"] = "rock" + query["arch"] = "rockspec" return search.find_suitable_rock(query) end