diff --git a/bootstrap.lua b/bootstrap.lua index 485e8dc..2ac59df 100644 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -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({ diff --git a/installer.lua b/installer.lua index e141721..c3c3e97 100644 --- a/installer.lua +++ b/installer.lua @@ -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({