Repository navigation
fix(bazel): support consumers with compatible registry dependencies - #428
AlexanderLanin wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
An active moderate issue remains in MODULE.bazel because the override and lockfile still force rules_python 1.5.4 instead of the requested 1.8.5.
1 open issue
What changed in this PR
Updates Bazel dependency declarations so Crypto can be consumed with compatible registry dependencies while preserving QNX-specific gRPC and Protobuf patches.
Changes:
- Updates declared rules_python, gRPC, and Protobuf versions.
- Applies QNX patches through registry-preserving single_version_override settings.
- Refreshes the Bazel module lockfile.
- The existing rules_python override still forces version 1.5.4 instead of the requested 1.8.5.
| File | Description |
|---|---|
| MODULE.bazel.lock | Refreshes registry hashes, module metadata, extension state, and dependency graph information. |
| MODULE.bazel | Updates dependency versions and applies QNX patches through registry-preserving overrides. |
Review effort: Lite
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
c27380f to
c4eba45
Compare
| # FlatBuffers in the future | ||
| # ******************************************************************************* | ||
| bazel_dep(name = "grpc", version = "1.83.0") | ||
| bazel_dep(name = "grpc", version = "1.76.0") |
There was a problem hiding this comment.
Will become obsolete with merge of #372.
Merge is targeted for Wednesday.
There was a problem hiding this comment.
This is a POC commit to show what is required for crypto to be integrated into ref int. Solve whichever way makes most sense to you :-)
There was a problem hiding this comment.
🔵 Needs a closer look
The change affects Bzlmod dependency resolution and QNX patching across external sources, but validating registry compatibility and target-toolchain linking requires unavailable Bazel and QNX integration builds.
No open issues 🎉
1 resolved since last review
Review effort: Lite
|
Documentation preview for this pull request is available at: |
|
|
||
| bazel_dep(name = "score_crates", version = "0.0.15") | ||
|
|
||
| crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate", isolate = True) |
There was a problem hiding this comment.
Remove of crate_universe usage, is also planned as for ref_int integration.
We assume that the experimental feature usage isolate is not allowed.
Signed-off-by: Alexander Lanin <Alexander.Lanin@etas.com>
c4eba45 to
810143b
Compare
| single_version_override( | ||
| module_name = "grpc", | ||
| patch_strip = 1, | ||
| patches = ["//third_party/grpc:grpc_qnx_pthread.patch"], | ||
| strip_prefix = "grpc-1.76.0", | ||
| urls = ["https://github.com/grpc/grpc/archive/refs/tags/v1.76.0.tar.gz"], | ||
| ) |

Why
Allow reference integration to consume Crypto without pulling in incompatible Python rules or a yanked Protobuf release. Bazel ignores dependency overrides outside the root module, so Crypto’s declared versions must also work when another workspace consumes it.
Use
rules_python1.8.5, gRPC 1.76.0 (matching the existing standalone archive), and a Protobuf minimum of 33.0. Apply the existing gRPC and Protobuf QNX patches withsingle_version_overrideso the registry’s Bazel metadata and patches are preserved and version resolution remains available. Refresh the lockfile for the resulting dependency graph.This is a POC commit to show what is required for Crypto to be integrated into reference integration (ref-int). Please solve this in whichever way makes the most sense to you :-)