Skip to content

DRAFT: Testing the new Swift-Subprocess behaviors#558

Draft
etcwilde wants to merge 2 commits into
swiftlang:mainfrom
etcwilde:ewilde/main-subprocess
Draft

DRAFT: Testing the new Swift-Subprocess behaviors#558
etcwilde wants to merge 2 commits into
swiftlang:mainfrom
etcwilde:ewilde/main-subprocess

Conversation

@etcwilde

Copy link
Copy Markdown
Member

Caution

Do not merge this as-is!
We should not be pointing swiftly directly at the swift-subprocess main branch. Once a new swift-subprocess is tagged, we will point at that instead.

There are some changes coming in the newest versions of Swift-Subprocess that we want to test before it is cut. This PR is to make testing the new Swift-Subprocess easier, migrating our use of the APIs to the latest version, and pointing Swiftly at the main branch.

etcwilde added 2 commits June 11, 2026 11:38
Switching the build to use the main-branch Subprocess to test new APIs.
Migrating everything to the new APIs.

The changes are primarily:
 - Adding the named `executable` argument name to the `Configuration`
   construction.
 - Migrating '.standardOutput'/'.standardError' to
   '.currentStandardOutput'/`.currentStandardError'.
 - Using the single execution context passed into the closure instead of
   the separate stderr/stdout streams.
 - Migrating from 'CollectedResult' to 'ExecutionResult'
 - `Executable.resolveExecutablePath` is now an async function, adding
   `await` to calls.

Also updated the handling of errors. `unhandledException` was replaced
with a `signaled` case.
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.

1 participant