Skip to content

Conversation

@MineRobber9000
Copy link

Under Lua 5.5, the control variable in for loops is declared <const>, which means attempting to assign to it causes an error. This results in a completely broken environment with an empty PATH. Per the reference manual, the correct fix is to define a local variable inside the loop with the same name as the control variable.

Under Lua 5.5, the control variable in `for` loops is declared `<const>`, which means attempting to assign to it causes an error. This results in a completely broken environment with an empty PATH. Per the reference manual, the correct fix is to define a local variable inside the loop with the same name as the control variable.
@un-def un-def merged commit 3856f1b into luarocks:master Jan 11, 2026
26 of 31 checks passed
@un-def
Copy link
Collaborator

un-def commented Jan 11, 2026

Thanks!

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.

2 participants