Comments (3)
In particular, without the python_grpc_library
dependency //A/B/C:baz_py_grpc
. bazel run A/B:bar
legitimately builds A:foo
(as can be verified by the presence of A/__pycache__/
with foo.cpython-310.pyc
inside it (this is all under bazel-bin/A/B/bar.runfiles/__main__/
). Similarly, if we just run bazel build A:foolib
, we see the __pycache__
dir.
However, with that dependency //A/B/C:baz_py_grpc
, I am not seeing the __pycache__
directory, confirming that the target A:foolib
is not built.
from rules_proto_grpc.
Have you tried setting legacy_create_init = False,
on your py_binary
? The default mode is somewhat broken how it handles overlapping import trees
from rules_proto_grpc.
Thank you for the suggestion; fixes our problem (for now; hopefully it will be easy to identify the missing __init__.py
requirements in srcs
and deps
for any future breakages).
Closing the Issue with much appreciation for your help!
from rules_proto_grpc.
Related Issues (20)
- Cannot add reference (dep) to C# proto library target
- Python proto rule broken when proto files are placed under sub directory of source file. HOT 3
- How to properly setup pyi_out dir in `extra_protoc_args`? HOT 7
- Support for remaining languages under Bzlmod HOT 4
- Build of examples fails: no such package '@@rules_proto_grpc~override//go': BUILD file not found in directory 'go' HOT 1
- When will rules_proto_grpc 1.61.0 be released? HOT 2
- Bazel 7.0 will require rules_proto_grpc to be > 1.60.0 HOT 1
- 4.6.0 in WORKSPACE mode not working with Bazel 7.0.0 HOT 5
- No such package @[unknown repo 'rules_proto_grpc_py3_deps_grpcl ib' requested from @]// HOT 2
- Windows 11 - Bazel 6.4.0 - Rules Proto 4.6.0 - You seem to have passed an empty string as one of the arguments to protoc.exe HOT 2
- generated Python gRPC code cannot be imported when the path has dot HOT 6
- Update the docs for Go bzlmod (and gazelle) HOT 1
- Building the rules on Windows platform without Bash shell installed HOT 1
- Any interest in python_betterproto_compile / python_betterproto_library? HOT 1
- aarch64 compatibility issue HOT 1
- Vulnerabilities in grpc HOT 1
- grpclib output is empty for proto paths with dashes
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Can not use both rules_proto_grpc_python and rules_proto_grpc_java in the same project HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_proto_grpc.