Skip to content

Commit

Permalink
fix(installer/bootstrap): pin luarocks to v3.11.1 (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Oct 23, 2024
1 parent 65d563f commit 259dee5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ local function set_up_luarocks(path)
return false
end

local luarocks_version = "v3.11.1"
sc = exec({
"git",
"checkout",
luarocks_version,
}, {
cwd = tempdir,
})
if sc.code ~= 0 then
notify_output(("Checking out luarocks %s failed."):format(luarocks_version), sc, vim.log.levels.WARN)
end

vim.notify("Configuring luarocks...")

sc = exec({
Expand Down
12 changes: 12 additions & 0 deletions installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ local function set_up_luarocks(install_path)
return false
end

local luarocks_version = "v3.11.1"
sc = exec({
"git",
"checkout",
luarocks_version,
}, {
cwd = tempdir,
})
if sc.code ~= 0 then
notify_output(("Checking out luarocks %s failed."):format(luarocks_version), sc, vim.log.levels.WARN)
end

vim.notify("Configuring luarocks...")

sc = exec({
Expand Down

0 comments on commit 259dee5

Please sign in to comment.