Skip to content

Fix installation of dummy WSL2 distro #3598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,15 @@ jobs:
# otherwise `wsl --list --verbose` (called from Lima) fails:
# https://github.com/lima-vm/lima/pull/1826#issuecomment-1729993334
# The distro image itself is not consumed by Lima.
# Starting with WSL2 version 2.5.7.0 the distro will be rejected
# if it doesn't contain /bin/sh and /etc.
# ------------------------------------------------------------------
wsl --import dummy $env:TEMP nul
mkdir dummy
mkdir dummy\bin
mkdir dummy\etc
echo "" >dummy\bin\sh
tar -cf dummy.tar --format ustar -C dummy .
wsl --import dummy $env:TEMP dummy.tar
wsl --list --verbose
- name: Set gitconfig
run: |
Expand Down
Loading