New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reproduce LUA_PATH and LUA_CPATH order in Lua 5.1 and LuaJIT #25
Comments
|
Line 503 in bbc6080
|
|
Sorry for the noise, I forgot to reset LUA_PATH and LUA_CPATH while testing. After I set LUA_PATH=';;' LUA_CPATH=';;' it works as expected. There is no bug with the order. What do you think about the second part of the request: excluding system-wide libraries like |
That's done, too. Only paths within installation prefix and current directory are there. Looks like the message on the mailing list with lists of paths is produced using standard global installations and not hererocks. |
|
I see. There is no bug, so I close the issue. |
hererocksadds its paths to the beginning ofLUA_PATH_DEFAULTandLUA_CPATH_DEFAULT.It is similar to how Lua 5.3 does. I'm not certain about Lua 5.2.
Lua 5.1 and LuaJIT use local path "./?.lua" as first member.
I think, changing
LUA_LDIRandLUA_CDIRis more reliable than adding new component to the beginning. Moreover, current behaviour promotes code inside hererocks to load system-wide code, which breaks the isolation and may result in hidden dependencies.See http://lua.2524044.n2.nabble.com/Virtualenv-Lua-liketool-td7672360.html
The text was updated successfully, but these errors were encountered: