Skip to content

Use implementation only import of Foundation in PackagePlugin #3408

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

Conversation

abertelrud
Copy link
Contributor

This is the same as #3404 but for PackagePlugin.

Motivation:

As with PackageDescription, PackagePlugin should not have an interface dependency on Foundation. There is no specific current problem but reducing the dependencies here is cleaner.

Modifications:

Convert one import of Foundation to implementation-only (we need it for decoding the JSON coming from SwiftPM and for encoding the JSON sent to SwiftPM).

Remove another import of Foundation altogether; it was only left over from code that has since been removed.

… recently been done for manifests, and remove an extraneous leftover import
@abertelrud abertelrud added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Apr 15, 2021
@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud merged commit d9a4b8c into swiftlang:main Apr 16, 2021
@abertelrud abertelrud deleted the implementation-only-imports-for-packageplugin branch August 23, 2021 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants