Skip to content

Use our posix_spawn() wrapper in the Foundation CIO rather than Process. #1114

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented May 14, 2025

We already have custom async-friendly code for spawning child processes, so let's use it instead of relying on Foundation.Process when we need to call the platform's zip or tar tool. Currently we do this in the Foundation cross-import overlay (hence why we were using Foundation.Process at all).

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan grynspan self-assigned this May 14, 2025
@grynspan grynspan added enhancement New feature or request linux 🐧 Linux support (all distros) attachments/activities 🖇️ Work related to attachments and/or activities qnx 🫐 QNX support openbsd 🐡 OpenBSD support windows 🪟 Windows support freebsd 😈 FreeBSD support labels May 14, 2025
@grynspan grynspan force-pushed the jgrynspan/use-spawn-code-for-zipping branch 2 times, most recently from 32f24a4 to 653a2de Compare May 14, 2025 17:15
@grynspan grynspan added the cross-import-overlays 🍰 Cross-import overlays (Foundation, Core Graphics, etc.) label May 14, 2025
@grynspan grynspan force-pushed the jgrynspan/use-spawn-code-for-zipping branch 2 times, most recently from 5f86571 to bedb19f Compare May 15, 2025 03:06
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/use-spawn-code-for-zipping branch from bedb19f to 279f18f Compare May 15, 2025 04:33
@grynspan
Copy link
Contributor Author

@swift-ci test

We already have custom `async`-friendly code for spawning child processes, so let's use it instead of relying on `Foundation.Process` when we need to call the platform's `zip` or `tar` tool. Currently we do this in the Foundation cross-import overlay (hence why we were using `Foundation.Process` at all).
@grynspan grynspan changed the title Use our posix_spawn() in the Foundation CIO rather than Process. Use our posix_spawn() wrapper in the Foundation CIO rather than Process. May 15, 2025
@grynspan grynspan force-pushed the jgrynspan/use-spawn-code-for-zipping branch from 279f18f to 1bdfdf5 Compare May 15, 2025 05:00
@grynspan
Copy link
Contributor Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attachments/activities 🖇️ Work related to attachments and/or activities cross-import-overlays 🍰 Cross-import overlays (Foundation, Core Graphics, etc.) enhancement New feature or request freebsd 😈 FreeBSD support linux 🐧 Linux support (all distros) openbsd 🐡 OpenBSD support qnx 🫐 QNX support windows 🪟 Windows support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant