Some way to invoke tool that requires stdin
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
The windows-2025 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.
It would be nice if there were some way - if possible - to run tools that require stdin to be attached.
Using options.input does not work but behaves just the same.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the @actions/exec entry point and investigate why options.input behaves like an empty stdin stream when running wsl --install --no-distribution. Reproduce the setup-wsl scenario and define done as providing a supported way to attach stdin so the command works outside an interactive shell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100