-
Notifications
You must be signed in to change notification settings - Fork 460
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
SwiftPM plugin: generate files into the source directory #1343
Comments
Hey @gliush, Right now our SPM plugin is a I think we need to take a step back here and talk about your reasons for why you want to commit the files:
I understand that concern and we don't like that protoc is coming from the environment right now. One of the ideas we have been playing around with is having one blessed swift package that exports protoc for the whole ecosystem. SPM just landed support for exporting
IMO you should monitor the changes to the On a side note, I think having a separate |
Yes, if we have |
This would be a requirement for the whole endeavour. I can't promise anything here but we are exploring this. |
Sounds great! |
What's the actually status/request here? Seems like the discussion covered a few things, so I'm not completely clear what this issue is now meant to track. Can someone update it or close it out and open a new issue that's a little more clear with what ever the pending request is? |
I think the latest here is that we need |
Is that the same as #1409? |
Yes, I think both point to the same underlying problem |
Hello,
I would like to keep the generated files in the repository as well as the
.proto
files.This seems to be useful at least for the following reasons:
protoc
is not part of the project, and its version is something that is defined by the environment. I want to be sure that some strange CI environment (with old or buggy version of theprotoc
) will not ruin my production.protoc
version change.The current version doesn't work for me as it puts the generated files into the
.build
folder.I would like to either:
It seems that https://github.com/apple/swift-evolution/blob/main/proposals/0332-swiftpm-command-plugins.md allows both:
PluginPermission
allows to write to the package directoryCommandPlugin
allows to have a plugin command to perform any action.The second approach is preferable for me as it allows to run the generation on-request from the developer.
The text was updated successfully, but these errors were encountered: