Skip to content

Commit

Permalink
fix(operations): always force reinstalls if rocks are already install…
Browse files Browse the repository at this point in the history
…ed (#353)
  • Loading branch information
mrcjkb authored May 27, 2024
1 parent 4e4ab38 commit 8537f6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/rocks/operations/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ helpers.install = function(rock_spec, progress_handle)
table.insert(install_cmd, version)
end
end
table.insert(install_cmd, 2, "--force")
luarocks.cli(install_cmd, function(sc)
---@cast sc vim.SystemCompleted
if sc.code ~= 0 then
Expand Down

0 comments on commit 8537f6a

Please sign in to comment.