Comments (2)
I'm having the same/related problem attempting to use these new rules in the gRPC project: grpc/grpc#18317
Specifically the problem manifests when depending on two py_library rules (created via python_grpc_library) that share a common package prefix. In my case:
bazel-genfiles/.../py_empty_proto_pb/src/proto/grpc/testing/empty_pb2.py
bazel-genfiles/.../py_reflection_proto_pb/src/proto/grpc/reflection/v1alpha/reflection_pb2.py
are generated from different python_grpc_library rules. When attempting to import, reflection_pb2 succeeds but empty_pb2 doesn't, with an error message that the testing module doesn't exist.
from rules_proto.
I'm closing this as the python implementation now uses an aspect which simplifies the imports considerably. Please open new issues as it will involve a different fix.
from rules_proto.
Related Issues (20)
- Some deps will not be resolved if run for only a dir HOT 1
- grpc server reflection failed in golang HOT 1
- WorkspaceSnippet is ignored in deps gen HOT 2
- Migrate to new rules_js/aspect_rules_ts? HOT 3
- rules_proto & rules_go problems / general dependency problems HOT 1
- checksum changed for `rules_proto` and dependencies HOT 1
- question: could you pinpoint the protoc version of this repository compared to bazelbuild/rules_proto? HOT 1
- bzlmod support HOT 4
- No such package '@com_github_grpc_grpc// HOT 1
- Bad syntax for proto_repository_tools_srcs.bzl HOT 3
- Publish a new release? HOT 2
- Support for rules_go 0.41.0 and gazelle 0.32.0
- proto_gazelle is not gathering up all data for runfiles
- fatal error: concurrent map read and map write HOT 4
- proto_compile_assets not working when strip_import_prefix is used HOT 3
- imports calculation for proto_py_library is broken
- Document starlark API better
- gazelle <0.35 no longer supported HOT 2
- error loading package '@build_stack_rules_proto//': cannot load '//rules:proto_gazelle.bzl' HOT 3
- Support linux arm64 prebuilt protoc
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.