-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
lua5_1, luajit and original luajit behave differently #189689
Comments
The lua ecosystem needs some love see:
The incentive for patching the interpreter is to increase purity and avoid loading inadvertendly stuff from /usr/local/share/. We could always wrap but someone using ";;" (i.e. "add default") in its LUA_PATH could inadvertendly break stuff. you can use |
Sorry, don't have much free time to read all the resources. Let's see how the issue infects daily development work.
And of course, with correcting |
bottomline was: you are right, things are broken and this is bad. Patches/tests welcomes |
should be fixed by #286822 |
should be fixed on master see those tests
|
Describe the bug
Will behave differently on host luajit, nixpkg luajit and nixpkg lua5_1.
Expected behavior
LUA_PATH_DEFAULT
ofluaconf.h
, there is not way lua runtime will automatically defaultly load something like./myPkg/init.lua
, but lua5_1 of nixpkg 22.05 will do this. I'm new to nix, can't see why?Screenshots
On macOS 12.5.1, LuaJIT 2.1.0-beta3
On luajit of nixpkgs 22.05 with helping of shell.nix
On lua5_1 of nixpkgs 22.05 with helping of shell.nix
Notify maintainers
@teto, 8884291
Metadata
The text was updated successfully, but these errors were encountered: