You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The windows-2025 GitHub actions runner image preview does not yet have WSL installed properly.
So to make my setup-wsl action compatible, I need to first execute wsl --install --no-distribution.
My action uses @actions/exec to do the necessary tool executions.
The problem is, that calling wsl --install from an interactive shell works perfectly fine.
But if I do it via @actions/exec it behaves like if called using echo | wsl --install which refuses to do its work but just says WSL is not installed yet.
How can wsl --install be called non-interactively?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
windows-2025
GitHub actions runner image preview does not yet have WSL installed properly.So to make my setup-wsl action compatible, I need to first execute
wsl --install --no-distribution
.My action uses
@actions/exec
to do the necessary tool executions.The problem is, that calling
wsl --install
from an interactive shell works perfectly fine.But if I do it via
@actions/exec
it behaves like if called usingecho | wsl --install
which refuses to do its work but just says WSL is not installed yet.How can
wsl --install
be called non-interactively?Beta Was this translation helpful? Give feedback.
All reactions