From de3cbb642d81d2185fca93c55ede9f4b9c5a104e Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 14 Mar 2024 00:00:53 +0100 Subject: [PATCH] fix(operations): ensure luarocks prioritizes rocks-binaries --- lua/rocks/luarocks.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/rocks/luarocks.lua b/lua/rocks/luarocks.lua index b5472d4d..92afdd5f 100644 --- a/lua/rocks/luarocks.lua +++ b/lua/rocks/luarocks.lua @@ -62,8 +62,10 @@ luarocks.cli = function(args, on_exit, opts) config.luarocks_binary, "--lua-version=" .. constants.LUA_VERSION, "--tree=" .. config.rocks_path, - "--server='https://nvim-neorocks.github.io/rocks-binaries/'", + -- WARNING: The servers are prioritised by luarocks in the reverse order + -- in which they are passed "--server='https://luarocks.org/manifests/neorocks'", + "--server='https://nvim-neorocks.github.io/rocks-binaries/'", }, args) log.info(luarocks_cmd) return vim.system(luarocks_cmd, opts, on_exit_wrapped)