Lua@5.4.8-1: Remove troublesome environment variables #7540
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
<manifest-name[@version]|chore>: <general summary of the pull request>I have been having issues with LUA_CPATH causing trouble, because it was being set to a wrong value, so I investigated why it even was added to the lua manifest here:
It was first added in #2931 and I can't find a reason why, the directories for it don't make any sense too, since LUA_PATH and LUA_CPATH (which replace
package.pathandpackage.cpathdefault values) must include the current directory (.\?.luaand.\?.dll) to be able to load modules viarequire "my_module", which is the most common way to include files.We can see those env vars didn't make sense because it caused issues in #3829, but the PR for it wasn't a proper fix, it just renamed LUA_PATH to a random environment path that isn't used anywhere (in the stack overflow page mentioned, the person that renamed it, was because they wanted to have an env var to the lua executable, not because it was used anywhere by any program), it kinda solved the issue though, because LUA_PATH isn't being set to wrong values anymore by scoop.
The proper solution is to just remove the LUA_PATH and LUA_CPATH so lua can use its default paths which work normally.