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

Implement runProgram for Windows #10769

Merged
merged 7 commits into from
Jun 23, 2024
Merged

Conversation

poweredbypie
Copy link
Member

@poweredbypie poweredbypie commented May 24, 2024

Context

Allows actually calling runProgram and runProgram2 on Windows. Closes #10544.

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Ericson2314
Copy link
Member

@poweredbypie Thanks again for all your hard work! Feel free to just make some unit tests for runProgram in tests/unit/libutil, I think.

@Ericson2314
Copy link
Member

Ericson2314 commented May 29, 2024

@poweredbypie just checking you are keeping this draft on purpose?

@poweredbypie
Copy link
Member Author

@poweredbypie just checking you are keeping this draft on purpose?

Yes, I haven't finished the implementation yet so I don't think it's ready to be merged.

@Ericson2314
Copy link
Member

Ericson2314 commented May 30, 2024

All good! I pushed a merge fixing conflicts, and enabling formatting on the file since it is mostly new code :)

This is incomplete; proper shell escaping needs to be done
@Ericson2314
Copy link
Member

@poweredbypie BTW, feel free to join the matrix if you want to coordinate on this stuff closer to real-time.

@poweredbypie
Copy link
Member Author

Hi, I've re-applied my commits to a more recent version of the master branch to clean up the commit history a bit. I'll be implementing some spawn tests shortly and hopefully those will pass and I'll move this out of draft mode.

@poweredbypie BTW, feel free to join the matrix if you want to coordinate on this stuff closer to real-time.

Sure, I've joined. Is there a specific room I can join for the windows effort? I skimmed around a bit but I didn't find one.

@purepani
Copy link

I believe here: https://matrix.to/#/#windows:nixos.org

Apparently, CreateProcessW already searches path, so manual path search
isn't really necessary.
@poweredbypie
Copy link
Member Author

I've implemented some very basic tests and ran them on my VM successfully, so I'm fairly sure this is ready to be merged now!

@poweredbypie poweredbypie marked this pull request as ready for review June 18, 2024 08:04
@Ericson2314
Copy link
Member

Oops sorry I missed this, thanks @poweredbypie!

@Ericson2314 Ericson2314 merged commit df06873 into NixOS:master Jun 23, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement process spawning on Windows
4 participants