From c9afbc85a5c6ed7e5979a5f12950bfe06c995468 Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Mon, 29 Jul 2024 20:01:35 +0300 Subject: add compat53 dependency --- .github/workflows/test.yml | 1 + src/luarocks/util.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d856e77f..9082c431 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,6 +50,7 @@ jobs: luarocks install busted luarocks install cluacov luarocks install busted-htest + luarocks install compat53 - name: Unit Test run: | diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 04865715..145993ea 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -63,9 +63,9 @@ local scheduled_functions = {} function util.schedule_function(f, ...) - local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS + -- local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS - local item = { fn = f, args = pack(...) } + local item = { fn = f, args = table.pack(...) } table.insert(scheduled_functions, item) return item end -- cgit v1.2.3-55-g6feb