Conversation
In Lua 5.5 (latest stable lua), for loop variables are now const. This fixes the code in ast/IO.lua to define a local variable within the loop that can be modified. I believe this is the only change necessary to support Lua 5.5, and it is backwards compatible.
|
This should be applied and released, and somewhat urgently. This is blocking lots of downstream stuff. I'm going to look into backporting a patch for the Arch Linux |
Packaging source is https://src.opensuse.org/lua/lua-vstruct ( And concerning to this particular problem, the answer is simple, I just didn’t run tests ;). Embarrassing. |
|
@ToxicFrog Has this issue hit your radar yet? I don't mean to be obnoxious –as a FOSS maintainer myself I know how things fall through the cracks in especially if the pings come at the wrong moment– but this needs attention. Alternatively @deepakjois are you tracking this? I see you're the owner of the module on LuaRocks. I wonder if you could apply the backport patch (found in #43) by posting a rockrel bump that points that commit instead of the main repo to fetch the sources. Somehow –whether as a patch release just fixing the Lua 5.5 compatibility or as a minor version release with the other unreleased changes– this needs to get out there so other projects can keep using vstruct. |
In Lua 5.5 (latest stable lua), for loop variables are now const. This fixes the code in ast/IO.lua to define a local variable within the loop that can be modified. I believe this is the only change necessary to support Lua 5.5, and it is backwards compatible.