Skip to content

Commit

Permalink
fix(operations): ensure luarocks prioritizes rocks-binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 13, 2024
1 parent 855d556 commit de3cbb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/rocks/luarocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de3cbb6

Please sign in to comment.