diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-17 01:01:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-17 11:16:54 -0300 |
commit | 3612c269f3cd6397c883799b0bea549d5a7d1512 (patch) | |
tree | 779764e493585252944c013ffcaaa96099ffa302 /COPYING | |
parent | 15f4f69f1536b8e7789191c4293d668a7fdccfcc (diff) | |
download | luarocks-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 'COPYING')
0 files changed, 0 insertions, 0 deletions