aboutsummaryrefslogtreecommitdiff
path: root/binary
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-17 01:01:12 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-17 11:16:54 -0300
commit3612c269f3cd6397c883799b0bea549d5a7d1512 (patch)
tree779764e493585252944c013ffcaaa96099ffa302 /binary
parent15f4f69f1536b8e7789191c4293d668a7fdccfcc (diff)
downloadluarocks-3612c269f3cd6397c883799b0bea549d5a7d1512.tar.gz
luarocks-3612c269f3cd6397c883799b0bea549d5a7d1512.tar.bz2
luarocks-3612c269f3cd6397c883799b0bea549d5a7d1512.zip
fix: install build_dependencies on the correct Lua version
When installing build dependencies, do so for the Lua version on which the LuaRocks program is actually running, and not the one selected by the user via config or `--lua-version`. To do that, we temporarily flip the user-selected Lua version. It's a hacky approach because we have to do this by flipping a bunch of global config settings, and we may be missing some entries. This definitely needs a better solution, but this is what can be done somewhat easily in the current architecture. A full solution needs to address have several complications (e.g. if you have a build dependency that needs to be compiled, it will require C headers for another version of LuaRocks, and the binary might be compiled with a different Lua version than the one the developer has set up in their machine.)
Diffstat (limited to 'binary')
0 files changed, 0 insertions, 0 deletions