diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-07-29 20:01:35 +0300 |
---|---|---|
committer | V1K1NGbg <victor@ilchev.com> | 2024-08-05 20:51:31 +0300 |
commit | c9afbc85a5c6ed7e5979a5f12950bfe06c995468 (patch) | |
tree | a28007dfed0a010a7f5bfde2fb862efc3a43b47e | |
parent | b2c2ed5ea350bdbb112adf6c5abd70afecdec028 (diff) | |
download | luarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.tar.gz luarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.tar.bz2 luarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.zip |
add compat53 dependency
-rw-r--r-- | .github/workflows/test.yml | 1 | ||||
-rw-r--r-- | 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: | |||
50 | luarocks install busted | 50 | luarocks install busted |
51 | luarocks install cluacov | 51 | luarocks install cluacov |
52 | luarocks install busted-htest | 52 | luarocks install busted-htest |
53 | luarocks install compat53 | ||
53 | 54 | ||
54 | - name: Unit Test | 55 | - name: Unit Test |
55 | run: | | 56 | 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 = {} | |||
63 | 63 | ||
64 | 64 | ||
65 | function util.schedule_function(f, ...) | 65 | function util.schedule_function(f, ...) |
66 | local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS | 66 | -- local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS |
67 | 67 | ||
68 | local item = { fn = f, args = pack(...) } | 68 | local item = { fn = f, args = table.pack(...) } |
69 | table.insert(scheduled_functions, item) | 69 | table.insert(scheduled_functions, item) |
70 | return item | 70 | return item |
71 | end | 71 | end |