Skip to content

Commit

Permalink
Install: Try rock before rockspec.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eloycoto committed Dec 2, 2019
1 parent ec9fa0b commit 8039201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rover/install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8039201

Please sign in to comment.