Skip to content

Add MQ LuaRocks package repair#5

Draft
Teichoui wants to merge 1 commit into
mainfrom
codex/issue-19-luarocks-bootstrap
Draft

Add MQ LuaRocks package repair#5
Teichoui wants to merge 1 commit into
mainfrom
codex/issue-19-luarocks-bootstrap

Conversation

@Teichoui
Copy link
Copy Markdown
Owner

@Teichoui Teichoui commented Apr 27, 2026

Summary

Adds RedFetch support for checking and repairing common MacroQuest LuaRocks packages after updates, matching MQ PackageMan's LuaRocks tree and versioned repository behavior.

Why

Some Lua scripts depend on common rocks such as lsqlite3 and luafilesystem. RedFetch should be able to verify the common packages exist on the user's MQ install and install missing packages using the same MQ LuaRocks layout PackageMan uses.

Details

  • Adds redfetch lua fix to verify/install common MQ Lua packages.
  • Runs the same check after successful watched updates when a MacroQuest path is configured.
  • Adds a Settings maintenance button for manual repair from the TUI.
  • Locates luarocks.exe in the MQ root.
  • Uses the selected MQ modules/<jitVersion>/luarocks tree.
  • Uses the matching versioned MQ LuaRocks repository, e.g. https://luarocks.macroquest.org/2.1.1774638290/.
  • Keeps behavior aligned with MQ PackageMan rather than pinning a separate rock version.

Validation

  • python -m pytest tests/test_lua_packages.py
  • Verified in local MQ testing that PackageMan installed lsqlite3 0.9.6-1 and Bazaar loaded successfully.

Related to RedGuides#19

@Teichoui Teichoui force-pushed the codex/issue-19-luarocks-bootstrap branch from 39d0015 to 5838fe2 Compare May 7, 2026 01:46
@Teichoui Teichoui changed the title Add common LuaRocks package repair Add MQ LuaRocks package repair May 7, 2026
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.

1 participant