You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strategy: all causes this behaviour since it doesn't call protoc once per proto file but once with all. (Which is what you want)
Expected Results
Neatly generated code and no output
Actual Results
Hundreds of these:
path "protocols\\test\\__init__.py" is not equal to "protocols/test/__init__.py", and therefore does not conform to the Protobuf generation specification. The path must be non-empty, relative, use "/" instead of "\" as the path separator, and not use "." or ".." as part of the path. Generation will continue without error here, but please raise an issue with the maintainer of the plugin and reference https://github.com/protocolbuffers/protobuf/blob/95e6c5b4746dd7474d540ce4fb375e3f79a086f8/src/google/protobuf/compiler/plugin.proto#L122
System Information
libprotoc 3.21.12
Python 3.10.12
Name: betterproto
Version: 2.0.0b6
Summary: A better Protobuf / gRPC generator & library
Home-page: https://github.com/danielgtaylor/python-betterproto
Author: Daniel G. Taylor
Author-email: danielgtaylor@gmail.com
License: MIT
Location: c:\users\erwindehaan\mambaforge\lib\site-packages
Requires: grpclib, python-dateutil
Required-by:
On Windows 11 x64, running in Powershell
Checklist
I have searched the issues for duplicates.
I have shown the entire traceback, if possible.
I have verified this issue occurs on the latest prelease of betterproto which can be installed using pip install -U --pre betterproto, if possible.
The text was updated successfully, but these errors were encountered:
Summary
Paths are not normalized to posix format on Windows
Reproduction Steps
Call
protoc
with the betterpython out options with multiple files that depend on one another.Also happen when run through buf: (
buf.gen.yaml
)strategy: all
causes this behaviour since it doesn't call protoc once per proto file but once with all. (Which is what you want)Expected Results
Neatly generated code and no output
Actual Results
Hundreds of these:
System Information
On Windows 11 x64, running in Powershell
Checklist
pip install -U --pre betterproto
, if possible.The text was updated successfully, but these errors were encountered: