luarocks
luarocks copied to clipboard
[Windows] Documentation for minor quirky edge case in Windows
I think this is a very very minor edge case, but some may benefit from knowing this, so I decided to share.
-
Description:
- OS: Windows (Windows 11)
- Luarocks version: 3.8.0 (Single Binary distribution, 64bit)
- Git Bash and cmd/PowerShell uses different paths for luarocks prefix (for config and installation).
- On Git Bash it's
~/.luarocks - On cmd/Powershell it's
%APPDATA%\luarocks - By default the two work as independent installations.
- On Git Bash it's
-
Important Quirk when trying to merge the two
- If you keep
~/.luarocksand make%APPDATA%\luarocksa link withmklink /j ...then when launching luarocks in PowerShell it wipes the hard link and makes a new%APPDATA%\luarocksdirectory. - Therefore I personally recommend to keep
%APPDATA%\luarocksand use a symbolic link for~/.luarockswithln -s ...
- If you keep
- Other shells may not exhibit this behavior. For instance,
busybox shuses%APPDATA%