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

Adding support for Swift Package Plugins #1090

Open
3 of 4 tasks
polpielladev opened this issue Sep 5, 2022 · 7 comments
Open
3 of 4 tasks

Adding support for Swift Package Plugins #1090

polpielladev opened this issue Sep 5, 2022 · 7 comments
Assignees

Comments

@polpielladev
Copy link
Collaborator

polpielladev commented Sep 5, 2022

Hi everyone! 👋

After speaking to @krzysztofzablocki, we decided that it would be good to get my sourcery-plugins repo into the Sourcery's main repository.

I will be looking at this piece of work shortly, which will involve the following work:

  • Modify the release code to include a Sourcery.artifactbundle artefact for the plugins to use. _Could potentially use the executable target instead? Not sure how that will play with a pre-build build tool plugin but should be okay for the command one? _
  • Move the command plugin from the sourcery-plugins repo over to Sourcery's main repo.
  • Add support for the upcoming Xcode command plugins.
  • Investigate how much work there would be to create a build tool plugin. This has a fair amount of challenges with directory paths and permissions, but should be doable. I have a working version locally which overcomes all hurdles except one last one which must be further investigated.

At the end of this work, Sourcery's consumers will be able to use the tool as a Swift Package Plugin.

@Nikoloutsos
Copy link

Kudos @pol-piella. Nice article

@krzysztofzablocki
Copy link
Owner

krzysztofzablocki commented Sep 5, 2022

BTW @pol-piella you might be able to use cache path argument for the sandbox issue

@polpielladev
Copy link
Collaborator Author

BTW @pol-piella you might be able to use cache path argument for the sandbox issue

Awesome! 🎉 I am nearly done with the first PR, will add support for that before I open it 🚀

@eddiekaiger
Copy link

Any updates on the build plugin?

@markst
Copy link
Contributor

markst commented May 15, 2023

@polpielladev does this change anything for you? #1150

@polpielladev
Copy link
Collaborator Author

Don't have a lot of bandwidth to look into this at the moment but I was planning on having a go again at trying to implement the build plugin.

I will see if I can find some time this weekend to have a play and I can report on the outcome 👀

@BrentMifsud
Copy link

any updates on this? Trying to get rid of mint from our CI and this is the last build plugin we need.

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

6 participants