aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-26 13:00:38 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-26 16:15:14 -0300
commit01213cb1ee21d0beeaba103577f233c5a6144c54 (patch)
tree842c32e908cabd6ad89e7609d36f423e432af41e
parent60f38846edd28a9bf0959a422a98a102660783cd (diff)
downloadluarocks-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.bat1
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
1163end 1163end
1164f:write("}\n") 1164f:write("}\n")
1165f:write("verbose = false -- set to 'true' to enable verbose output\n") 1165f:write("verbose = false -- set to 'true' to enable verbose output\n")
1166f:write("fs_use_modules = false -- prevent LuaRocks itself from using installed modules and blocking their files from removal \n")
1166f:close() 1167f:close()
1167 1168
1168print(S"Created LuaRocks config file: $CONFIG_FILE") 1169print(S"Created LuaRocks config file: $CONFIG_FILE")