-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Provide libSwiftPM API to allow plugins to be compiled before they are invoked #3841
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
Provide libSwiftPM API to allow plugins to be compiled before they are invoked #3841
Conversation
… from invoking them (typically for collecting diagnostics up-front) and add a `PluginCompilationResult` type that can be returned to clients.
6376f3c
to
6cfecaf
Compare
@swift-ci please smoke test |
The |
@briancroom This looks related to #3844? |
Yes, that’s right. See discussion: |
Thanks, Brian! Sorry, missed those comments. So that failure alone shouldn't block merging this? (to be clear this PR is still a work in progress, but hopefully soon won't be) |
Actually I forgot that I added the unit test already to this PR, so it's ready. |
The failure in the self-hosted test on Linux is known and unrelated (see comments above) and should be resolved when a newer toolchain is used by CI. |
Split out compilation of package plugins so it can be done separately from invoking them (typically for collecting diagnostics up-front) and add a
PluginCompilationResult
type that can be returned to clients.Motivation:
This allows libSwiftPM clients (and at some point the SwiftPM CLI) to compile plugins separately from running them.
Modifications: