From 1f3d1c1af2bcff5a9f0ca8fc2ef5e299aa660997 Mon Sep 17 00:00:00 2001 From: An Tran Date: Fri, 6 Jun 2025 13:52:35 +1000 Subject: [PATCH] Upgrade luarocks to v3.12.0 --- lua-rover-scm-1.rockspec | 2 +- src/luarocks/fetch/git.lua | 1 - src/rover/install.lua | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lua-rover-scm-1.rockspec b/lua-rover-scm-1.rockspec index 6840e6e..75cbcfd 100644 --- a/lua-rover-scm-1.rockspec +++ b/lua-rover-scm-1.rockspec @@ -10,7 +10,7 @@ description = { } dependencies = { "argparse ~> 0.5.0", - "luarocks ~> 3.11.1" + "luarocks ~> 3.12.0" } build = { type = "builtin", diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index d2b4d6d..8b91ec0 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua @@ -114,7 +114,6 @@ end -- the fetched source tarball and the temporary directory created to -- store it; or nil and an error message. function git.get_sources(rockspec, extract, dest_dir, depth) - assert(rockspec:type() == "rockspec") assert(type(dest_dir) == "string" or not dest_dir) local git_cmd = rockspec.variables.GIT diff --git a/src/rover/install.lua b/src/rover/install.lua index 1f23795..5daabb5 100644 --- a/src/rover/install.lua +++ b/src/rover/install.lua @@ -62,7 +62,7 @@ local function install(name, version, deps_mode, force) repos.delete_version(name, version, deps_mode) end - local opts = build.opts({ + local opts = { need_to_fetch = true, minimal_mode = false, deps_mode = deps_mode, @@ -74,7 +74,7 @@ local function install(name, version, deps_mode, force) pin = false, rebuild = force, no_install = false, - }) + } if not repos.is_installed(name, version) then local spec, err = assert(search.find_src_or_rockspec(name, nil, version))