-
Notifications
You must be signed in to change notification settings - Fork 6
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
Please update for LuaRocks 3.0.4 #15
Comments
there already was a pr; #14 I guess we'll need to adjust that then |
If I remove the hack then the config file starts to default to the system directories (eg. no longer self contained) Old version, with system config in
With 3.0.4, and the hack removed, it goes into
|
ah, I guess that's why the mention of the additional batch file, I'll give that a try |
@hishamhm does the all-in-one binary also do the auto-elevation trick when it is doesn't have enough rights for an install? |
So this is harder than expected, since LuaRocks doesn't pick up the defaults properly
The top shows LuaRocks is running on Lua 5.1. Yet the LFS dependency is being compiled using the 5.3 headers. So seems LuaRocks is taking a wrong turn here somewhere, Any ideas @hishamhm ? |
it doesn't. isn't it possible to do the equivalent of "setuid the binary" to make it privileged? |
not that I know of (but not too much into priviledges on Windows these days), usually the access is validated at runtime, and the user is prompted for extra credentials. Would make more sense to loosen up restrictions on the LuaRocks tree probably. But it goes against the security model. We've had lengthy discussions on this in the past, when we treated rocks as data, and not as executable code. Hence we implemented the auto-elevation code in the batch files, so it would honor the Windows security model. |
just noticed this, which is concerning:
it does pick |
getting weirder all the time:
|
adding the |
The access denied errors are probably because of the script trying folders in the system path it doesn't have access to. This folder is in the path:
|
This requires some minor changes to the main script since the site_config hack should not be needed anymore (all trees in 3.x are versioned).
Ideally, it should be possible to replace the three LuaRocks installs with a single copy of
luarocks.exe
, create a config file for each version, and wrap them withluarocks5x.bat
scripts that do something likefor convenience.
The text was updated successfully, but these errors were encountered: