Skip to content

Fix: linux-readline platform only set when using Lua 5.4.x - #51

Merged
Stratus3D merged 3 commits into
Stratus3D:masterfrom
justiceenunciate:je/readline-env-variable-only-works-with-lua-5-4
Aug 17, 2026
Merged

Fix: linux-readline platform only set when using Lua 5.4.x #51
Stratus3D merged 3 commits into
Stratus3D:masterfrom
justiceenunciate:je/readline-env-variable-only-works-with-lua-5-4

Conversation

@justiceenunciate

Copy link
Copy Markdown
Contributor

Description

I noticed that installing Lua 5.5.0 when using the ASDF_LUA_LINUX_READLINE environment variable would fail and complain about a missing target:

make: *** No rule to make target 'linux-readline'.  Stop.
error installing version: failed to run install callback: exit status 1

After reading through the Changelog I noticed that readline is loaded dynamically as of 5.5.0. I also pulled down the archive to confirm that linux-readline is no longer a target in the Makefile.

Changes

  • linux-readline target only works when Lua version is 5.4.x and ASDF_LUA_LINUX_READLINE is set to 1
  • README reflects these changes
  • Set linux as the Makefile target when uname -r is set to linux (This might be a mistake)

Other thoughts

I'm not 100% sure if uname -r will always return "Linux" when on Linux, but it seemed odd to me that we fallback to Linux based on the Lua version, then finally back to guess. This might put other distributions into guess more often, but I have a hunch that this is less fallible than the alternative. Let me know if this was a mistake though!

@justiceenunciate
justiceenunciate force-pushed the je/readline-env-variable-only-works-with-lua-5-4 branch from 0c0fdfa to 78ca0e3 Compare August 15, 2026 02:52
@justiceenunciate

Copy link
Copy Markdown
Contributor Author

I tried upgrading actions/checkout to see if that would help with the tests, but no dice. That said, it could be worth upgrading from v4 to v7 anyway given the nature of the recent changes! ( https://github.com/actions/checkout#checkout-v7 )

@justiceenunciate
justiceenunciate force-pushed the je/readline-env-variable-only-works-with-lua-5-4 branch from 78ca0e3 to 9dba7ac Compare August 15, 2026 03:25
@Stratus3D
Stratus3D requested a balanced review from Copilot August 15, 2026 19:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restricts linux-readline to Lua 5.4.x and supports Lua 5.5’s dynamic readline loading.

Changes:

  • Adds Lua 5.4.x version detection.
  • Uses the standard linux target on Linux.
  • Updates readline documentation.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
README.md Clarifies readline behavior for Lua 5.4.x.
bin/install Revises platform target selection.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md

If you are installing Lua 5.4.x or greater on linux by default Lua will be compiled without readline. You can override this behavior by setting `ASDF_LUA_LINUX_READLINE=1` before running `asdf install`. See this thread for the details - http://lua-users.org/lists/lua-l/2020-07/msg00363.html
If you are installing Lua 5.4.x on Linux, Lua will be compiled without
readline.

@Stratus3D Stratus3D Aug 17, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting seems a little off here.

Also might be good to note that 5.1 to 5.3 require readline, and 5.5.x and newer will have readline support dynamically included, so if you want readline make sure it's installed before installing lua.

@Stratus3D Stratus3D left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me but I think the details on readline should be added to the readme.

@Stratus3D
Stratus3D merged commit fb2dcc8 into Stratus3D:master Aug 17, 2026
4 of 36 checks passed
@Stratus3D

Copy link
Copy Markdown
Owner

Thanks for the PR @justiceenunciate !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants