diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-26 13:00:38 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-26 16:15:14 -0300 |
commit | 01213cb1ee21d0beeaba103577f233c5a6144c54 (patch) | |
tree | 842c32e908cabd6ad89e7609d36f423e432af41e | |
parent | 60f38846edd28a9bf0959a422a98a102660783cd (diff) | |
download | luarocks-01213cb1ee21d0beeaba103577f233c5a6144c54.tar.gz luarocks-01213cb1ee21d0beeaba103577f233c5a6144c54.tar.bz2 luarocks-01213cb1ee21d0beeaba103577f233c5a6144c54.zip |
fix: prevent LuaRocks from blocking lfs from removal on Windows
Prevent LuaRocks itself from using installed modules and blocking their files from removal.
This is not an issue on luarocks.exe because its own copy of lfs is statically linked.
We need to eventually switch to using that always, but for now this is a workable
solution.
Fixes #1428.
-rw-r--r-- | install.bat | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/install.bat b/install.bat index ba4a12fd..61ee164d 100644 --- a/install.bat +++ b/install.bat | |||
@@ -1163,6 +1163,7 @@ if USE_MINGW then | |||
1163 | end | 1163 | end |
1164 | f:write("}\n") | 1164 | f:write("}\n") |
1165 | f:write("verbose = false -- set to 'true' to enable verbose output\n") | 1165 | f:write("verbose = false -- set to 'true' to enable verbose output\n") |
1166 | f:write("fs_use_modules = false -- prevent LuaRocks itself from using installed modules and blocking their files from removal \n") | ||
1166 | f:close() | 1167 | f:close() |
1167 | 1168 | ||
1168 | print(S"Created LuaRocks config file: $CONFIG_FILE") | 1169 | print(S"Created LuaRocks config file: $CONFIG_FILE") |