From 8537f6a69213b42daaf2a5d25c8df38ee8bd41af Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 27 May 2024 20:32:05 +0200 Subject: [PATCH] fix(operations): always force reinstalls if rocks are already installed (#353) --- lua/rocks/operations/helpers.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/rocks/operations/helpers.lua b/lua/rocks/operations/helpers.lua index 7a2c1c45..44c6d073 100644 --- a/lua/rocks/operations/helpers.lua +++ b/lua/rocks/operations/helpers.lua @@ -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