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

Add public API to query a target's runnable path #286

Open
jakepetroules opened this issue Mar 11, 2025 · 0 comments
Open

Add public API to query a target's runnable path #286

jakepetroules opened this issue Mar 11, 2025 · 0 comments

Comments

@jakepetroules
Copy link
Collaborator

jakepetroules commented Mar 11, 2025

swift-run will use this to locate the path to the executable to launch.

(see https://github.com/swiftlang/swift-package-manager/pull/8331/files#r1990110132)

Suggested starting point: SWBBuildServiceSession could get an API like func generateRunnableInfo(for request: SWBBuildRequest, targetID: String, delegate: any SWBPlanningOperationDelegate) async throws -> SWBRunnableInfo which returns a struct containing path information for the specified target.

Or, this could be emitted as a new SwiftBuildMessage event that could contain the path information since the build process already has to produce it as a side effect. ReportPathMapInfo is a similar kind of thing that already exists; we could have a ReportRunnableInfo.

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

No branches or pull requests

1 participant