-
Notifications
You must be signed in to change notification settings - Fork 7
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
Integrate plugin with buf cli #26
Comments
I'm sorry this is my first experience with |
@dwwhitlock Currently,some changes that need to be made to make it compatible with the Let's assume that the project is now structured as follows:
Among them, The contents of the other documents are as follows:
All the files are ready, install 'protoc' and 'buf' on the system. # Set the current directory to the working directory to load the plugin_config.py
export PYTHONPATH=$PYTHONPATH:.
# Poetry can be used to load information into the current Python environment
poetry run npx buf generate proto-demo If 'poetry' is not installed, can directly activate the current python environment and execute the command, as follows # Set the current directory to the working directory to load the plugin_config.py
export PYTHONPATH=$PYTHONPATH:.
# Suppose the path of the current python program is '.venv/bin/python'
source .venv/bin/activate
npx buf generate proto-demo |
Is your feature request related to a problem? Please describe.
Our team is using the buf cli to manage protobuf builds because
managing
protoc
calls can be clunky.Describe the solution you'd like
I'd like this plugin integrated with the CodeGeneratorRequest so that a Dockerfile can be implemented that will allow a custom plugin to be implemented.
Additionally, this will facilitate adoption by Buf to make it a hosted plugin, which will likely increase adoption of this plugin.
Describe alternatives you've considered
The alternative is to use the CLI as documented. However,
buf generate
is a much friendlier interface to using this.Additional context
bufbuild/plugins#589
The text was updated successfully, but these errors were encountered: