Skip to content

LR 3.12.2 doesn't support Lua-5.5.0-beta; will need update #1812

Closed

Description

@sur-behoffski

As per my email to the lua-l mailing list:

https://groups.google.com/g/lua-l/c/9fDJLEsLrIQ

I tried Lua-5.5.0-beta with the latest LuaRocks-3.12.2. My code fails because LR doesn't support Lua 5.5.

I am working under LinuxMint-22.1 (Debian/Ubuntu derivative), and my "lglicua" GNU/Linux/Lua+LuaRocks+Rocks Assistant fails to configure LuaRocks after Lua 5.5 is installed.

A casual inspection of "configure" (Usage help and the Lua interpreter selection code), shows that LR obviously only supports 5.1 to 5.4 (whitelisting), and fails otherwise.

(As an aside, I can report that LR-3.12.2 does work with the recently-released Lua-5.4.8.)

While Lua-5.5 is in beta, this is not a LuaRocks "bug". But, this is a situation where potential disruption, not only to LR but possibly also to some Rocks, is brewing on the horizon. The Beta release may provide helpful pointers.

Activity

  1. luau-project commented on Jul 10, 2025

    @luau-project
    Collaborator

    @hishamhm

    Yesterday, performing a recursive file search for simple words like "5.4", "54" and "global", I realized that a considerable work has to be done on multiple files in LuaRocks aiming the proposed changes (see https://www.lua.org/work/doc/#changes) on Lua 5.5.0.

    Do you think is it a good idea to create a lua-5.5.0-beta branch to support the upcoming Lua 5.5.0? The reason for such branch would be to avoid polution on LuaRocks's main branch. If you think this is the way to go, custom branches on luarocks/hererocks, luarocks/gh-actions-lua and luarocks/gh-actions-luarocks would also be needed to fix LuaRocks CI.

  2. hishamhm commented on Jul 10, 2025

    @hishamhm
    Member

    @luau-project yes, there is a lot of places where version numbers are referenced, but the changes are mostly simple, based on past experiences supporting new Lua versions.

    Also, given the port to Teal, the plan is to stop supporting running the LuaRocks CLI itself under multiple Lua versions. This has always been the part that is more of a timesink (and continues to be: see the 15-year old LuaJIT bug people continue hitting). We should be reducing the support matrix of the CLI rather than further growing it. LuaRocks should support managing multiple Lua versions, but it should be a stand-alone application statically linked to a single Lua version that works.

    @sur-behoffski One thing to keep in mind is that everything in a Lua beta version is subject to change. We've seen big changes in the past in beta versions compared to release versions. There's no point in running around chasing it. Once Lua 5.5 gets released, then support should be added. But, as it stands, as a matter of policy LuaRocks does not support Lua beta versions.

    So, I'm closing this one but rest assured that in time Lua 5.5 support will arrive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions