From 259dee5fef46e61b49755b6610b6539d0d346e1f Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Wed, 23 Oct 2024 18:04:25 +0200 Subject: [PATCH] fix(installer/bootstrap): pin luarocks to v3.11.1 (#569) --- bootstrap.lua | 12 ++++++++++++ installer.lua | 12 ++++++++++++ 2 files changed, 24 insertions(+) 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({