3 ms·
In addition to the reasons already stated, WSL2 is a heavy dependency. Compared to PowerShell: 1. Typical WSL2 distros require far more disk space. 2. RAM use
by jasomill 2y ago
In addition to the reasons already stated, WSL2 is a heavy dependency. Compared to PowerShell:
1. Typical WSL2 distros require far more disk space.
2. RAM used by WSL2 may not be immediately freed when your script exits.
3. WSL2 distros don't auto-update, so telling someone to install, e.g., Ubuntu via the Microsoft Store is insufficient to ensure a well-maintained WSL2 instance.
4. WSL2 requires enabling Windows hypervisor support, which can be difficult (KVM) or impossible (non-bare metal EC2 instances) in virtualized Windows instances.
While (1) is probably not a big deal and (2) and (3) have reasonable workarounds, (4), where relevant, tends to be a showstopper.