Skip to content
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

fix: ignore stdin of spawned commands #1387

Merged
merged 2 commits into from Jan 31, 2024
Merged

fix: ignore stdin of spawned commands #1387

merged 2 commits into from Jan 31, 2024

Conversation

iiroj
Copy link
Member

@iiroj iiroj commented Jan 24, 2024

This should fix #1293 and #1019

Copy link

changeset-bot bot commented Jan 24, 2024

🦋 Changeset detected

Latest commit: dd72fde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
lint-staged Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@iiroj iiroj linked an issue Jan 24, 2024 that may be closed by this pull request
@iiroj
Copy link
Member Author

iiroj commented Jan 25, 2024

Ping @okonet do you have any opinion? I hadn't considered that spawned tasks accept input from stdin because the intention is to form the complete command, including staged files as arguments, when spawning.

Do you think there might be some unexpected consequences if ignoring stdin? We could of course add it back as an explicit flag like --stdin if someone relies on it (given the arguments are good and there's no workaround).

I think it makes sense to ignore by default...

@iiroj iiroj requested a review from okonet January 25, 2024 16:53
@iiroj iiroj force-pushed the ignore-stdin branch 2 times, most recently from 281dc24 to 9a75c55 Compare January 30, 2024 18:13
@iiroj iiroj merged commit 52a9e3f into master Jan 31, 2024
17 checks passed
@iiroj iiroj deleted the ignore-stdin branch January 31, 2024 05:49
@github-actions github-actions bot mentioned this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Subprocess stucks while read stdin Expose execa Options for Configuring Its Child Process Spawning Behavior
1 participant