Skip to content

Commit

Permalink
fix(api): include dev rocks in query_luarocks_rocks (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Jun 17, 2024
1 parent 40c9757 commit 06ea5e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/rocks/api/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ end
---@param callback fun(rocks: table<rock_name, Rock[]>)
---@async
function api.query_luarocks_rocks(callback)
nio.run(luarocks.search_all, function(success, rocks)
if success then
nio.run(function()
luarocks.search_all(function(rocks)
callback(rocks)
end
end, { dev = true })
end)
end

Expand Down
2 changes: 1 addition & 1 deletion lua/rocks/luarocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ luarocks.search_all = nio.create(function(callback, opts)
end
end
callback(rocks_table)
end, 1)
end, 2)

return luarocks

Expand Down

0 comments on commit 06ea5e1

Please sign in to comment.