protocolbuffers/protobuf
Ver no GitHubPlugins passed as --plugin not searched from PATH
Open
#10.302 aberto em 22 de jul. de 2022
help wantedprotoc
Métricas do repositório
- Stars
- (71.223 stars)
- Métricas de merge de PR
- (Mesclagem média 2d 11h) (185 fundiu PRs em 30d)
Description
When extracting plugins such as the ones published from gRPC mainline, the folder contains file formatted like grpc_python_plugin. With this folder on PATH, I would expect --plugin=protoc-gen-grpc_python=grpc_python_plugin to work, but it seems this argument requires an exact path. This appears to be an explicit decision.
I feel like sourcing from PATH could be more convenient for this, but if going with the current behavior, at least the error message needs to be changed for this codepath because currently it implies that PATH should work.
protoc --grpc_python_out=build/python --plugin=protoc-gen-grpc_python=grpc_python_plugin testdata/helloworld.proto
grpc_python_plugin: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable