Skip to content

Commit

Permalink
fix(luarocks): make sure LUAROCKS_CONFIG is unset (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Feb 16, 2024
1 parent 92add1e commit 8cfb41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lua/rocks/luarocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ luarocks.cli = function(args, on_exit, opts)
lock.wait()
lock = nio.control.future()
end
opts.env = vim.tbl_deep_extend("force", opts.env or {}, {
LUAROCKS_CONFIG = "",
})
local luarocks_cmd = vim.list_extend({
config.luarocks_binary,
"--lua-version=" .. constants.LUA_VERSION,
Expand Down
4 changes: 0 additions & 4 deletions nix/plugin-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,6 @@ in {
package.cpath = package.cpath .. ";" .. table.concat(luarocks_cpath, ";")
vim.opt.runtimepath:append(vim.fs.joinpath("${rocks}", "rocks.nvim-scm-1-rocks", "rocks.nvim", "*"))
--- FIXME: nix somehow propagates the LUAROCKS_CONFIG used to build rocks.nvim to neovim
--- See https://github.com/nvim-neorocks/rocks.nvim/issues/148
vim.fn.setenv("LUAROCKS_CONFIG", "")
'';
wrapRc = true;
wrapperArgs =
Expand Down

0 comments on commit 8cfb41b

Please sign in to comment.