Skip to content

[5.9] Add templates for build tool plugins and command plugins (#6111) #6352

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

Merged

Conversation

abertelrud
Copy link
Contributor

This is a cherry-pick of #6111 for nomination to 5.9.

rdar://107288352

Co-authored-by: Anders Bertelrud anders@apple.com
(cherry picked from commit f25e138)

)

Adds templates for build tool plugins and command plugins, allowing them to be created from the `swift package init` command.  The packages are set up to vend the plugins via plugin product declarations, so they can be used by other packages.  The initial code for each each plugin type is minimal, but for the build tool plugin type it shows how to create and return a build command for each source file of a particular type, since that's the most common use of build tool plugins.

rdar://107288352

Co-authored-by: Anders Bertelrud <anders@apple.com>
(cherry picked from commit f25e138)
@abertelrud abertelrud self-assigned this Mar 29, 2023
@abertelrud abertelrud added the swift 5.9 This PR targets the 5.9 branch label Mar 29, 2023
@abertelrud
Copy link
Contributor Author

@swift-ci test

@abertelrud
Copy link
Contributor Author

@swift-ci smoke test

@abertelrud abertelrud enabled auto-merge (squash) March 29, 2023 18:32
@tomerd tomerd requested a review from swift-server-bot March 29, 2023 19:16
@tomerd
Copy link
Contributor

tomerd commented Mar 29, 2023

(swift-server-bot approval was me logged in with the wrong account)

@abertelrud
Copy link
Contributor Author

macOS test failure seems to be infra. Restarting.

@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test macos

@abertelrud
Copy link
Contributor Author

@swift-ci smoke test macOS platform

@abertelrud
Copy link
Contributor Author

Looks like the macOS CI can't find an available node.

@abertelrud
Copy link
Contributor Author

@swift-ci smoke test macos platform

@abertelrud abertelrud merged commit 6c4326a into swiftlang:release/5.9 Mar 30, 2023
@abertelrud abertelrud deleted the eng/plugin-template-5.9 branch March 30, 2023 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.9 This PR targets the 5.9 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants