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(windows): mimic an empty stdin input #145

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

realtimetodie
Copy link
Contributor

Prevents the stdin handle from waiting in an infinite loop for the read stream to finish

Fixes #141

Prevents the stdin handle from waiting in an infinite loop for the read stream to finish

Fixes aspect-build#141
Copy link
Member

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I wonder which is simpler, always use run shell on all platforms or make this change conditional on being on windows. @gregmagolan wdyt?

@alexeagle
Copy link
Member

Also we should have a link to some upstream bug this is working around

@realtimetodie
Copy link
Contributor Author

yes, I will need some time to fill an upstream bug

Note: even if the exec platform is linux, it's okay that a windows host creates a run_shell command as it works in both places.

This avoids the cost of an extra shell process for each swc spawn for linux/darwin
@alexeagle alexeagle merged commit f028b1b into aspect-build:main Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Hangs on windows?
2 participants