-
-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Is your feature request related to a problem? Please describe.
As stated in Redis documentation, the only supported Lua runtime is Lua 5.1. Logically, I would also expect it to work with Lua 5.x, because the new minor versions should be backward-compatible with previous minor versions. However, that is not the case. In Lua 5.2 unpack
was completely removed and replaced with table.unpack
.
So when using Lua with fakeredis, the only available version is 5.4
and in the real-world environment it's 5.1
. Being unable to fix the Lua version and use one of somebody's choice forces to do such a fix to make it working:
table.unpack = table.unpack or unpack
Describe the solution you'd like
Probably, a good solution will be to pass Lua version with an environment variable like FAKEREDIS_LUA_VERSION
and default it to the latest one in case it's not present or lupa doesn't support runtime for this version.
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.