mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-05 17:03:12 -04:00
4f07872b86
luacheck 1.2.0 is the newest release and predates Lua 5.5, which made
generic-for control variables read-only. Built against Lua 5.5 it dies
loading luacheck.standards -- before linting a single file -- so the T0
gate can never pass, and the failure surfaced only as a raw loader
traceback that looks like a repo defect.
Probe `luacheck --version` before the real run:
- if it cannot run, print the captured error plus the Lua 5.4 install
command and exit 2, matching the existing not-found path
- if it runs but reports Lua 5.5, warn that 1.2.0 predates it and that
results are suspect, then lint anyway
CI is unaffected: it installs luacheck against Ubuntu's Lua, not 5.5.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>