-
Notifications
You must be signed in to change notification settings - Fork 10
Testing CRT bzlmod migration #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Migrate dependencies to MODULE.bazel (LLVM, Python, Rust); bump Bazel to 7.3.1. - Update C++ to C++17/C11; configure LLVM and aspect_rules_lint. - Fix build/tests in src/ate, proxy_buffer, and config/spm. - Move patches to third_party/ and remove legacy repo config. Signed-off-by: Willy Zhang <willyzhang@google.com>
This change completes the Bzlmod migration for Google-hosted dependencies. Specific changes: - Move re2 and protobuf-matchers to MODULE.bazel. - Remove legacy third_party/google/repos.bzl. - Drop unused boringssl-windows-constraints.patch. Signed-off-by: Willy Zhang <willyzhang@google.com>
Migrate rules_foreign_cc and upb from WORKSPACE to MODULE.bazel. - Add rules_foreign_cc and upb (required by gRPC) to MODULE.bazel. - Remove legacy third_party/bazel macros and files. - Remove protocol_compiler bind from WORKSPACE. Signed-off-by: Willy Zhang <willyzhang@google.com>
- Move softhsm2 definition from WORKSPACE to MODULE.bazel. - Update src/pk11/test_support.go to use bazel.Runfile for locating softhsm2-util. - Remove third_party/softhsm2/repos.bzl. Signed-off-by: Willy Zhang <willyzhang@google.com>
- Move lowrisc repository definitions from WORKSPACE to MODULE.bazel. - Remove legacy third_party/lowrisc/repos.bzl. - Update documentation to reference MODULE.bazel. Signed-off-by: Willy Zhang <willyzhang@google.com>
- Remove unused third_party/protobuf/BUILD.bazel. - Remove third_party/protobuf/grpc-go-toolchain.patch. - Remove third_party/protobuf/grpc-windows-constraints.patch. - Remove third_party/protobuf/repos.bzl. - Remove third_party/google/BUILD.bazel. Signed-off-by: Willy Zhang <willyzhang@google.com>
Signed-off-by: Willy Zhang <willyzhang@google.com>
This change updates the `rules_rust_bindgen` patching strategy to support building on modern Linux hosts that enforce PIE. Split `bindgen_static_lib.patch` into three focused patches: - `bindgen_remove_static_check.patch`: Supports header-only deps. - `bindgen_prioritize_pic.patch`: Prioritizes PIC libs for host PIE builds. - `bindgen_fix_resource_dir.patch`: Fixes Clang resource dir detection. Signed-off-by: Willy Zhang <willyzhang@google.com>
This commit completes the Bzlmod migration for core dependencies, Go toolchains, and Docker rules. It includes the following key changes: - Migrated `rules_docker` and `rules_go` dependencies to MODULE.bazel. - Updated `rules/vendor.bzl` to use `default_vendor_label` instead of `dummy_label` for clarity. - Added `third_party/docker/rules_docker_fix.patch` to fix `image_transition` platform constraints (forcing x86_64/linux). - Added `third_party/lowrisc/opentitan_llvm.patch` to remove conflicting LLVM toolchain configurations. - Updated `third_party/docker` and `third_party/lint` to use module extensions.
Signed-off-by: Willy Zhang <willyzhang@google.com>
Signed-off-by: Willy Zhang <willyzhang@google.com>
Signed-off-by: Willy Zhang <willyzhang@google.com>
70fd256 to
3aee718
Compare
Signed-off-by: Willy Zhang <willyzhang@google.com>
Signed-off-by: Willy Zhang <willyzhang@google.com>
Signed-off-by: Willy Zhang <willyzhang@google.com>
Upgraded to Bazel 8.0.1 and resolved Bzlmod/Starlark incompatibilities: - **MODULE.bazel**: Upgraded `rules_docker` to v0.26.0 and unified Rust `crate_index` with upstream `lowrisc_opentitan` to fix type mismatches. - **Toolchains**: Updated GCC MinGW paths and wrappers to support Bazel 8's `+` directory naming convention. - **Config**: Renamed local providers `MyArtifactNamePatternInfo` -> `ArtifactNamePatternInfo` and `MyFeatureInfo` -> `FeatureInfo` for clarity. - **Build**: Fixed `otlib_wrapper` to use stable `@crate_index` alias. Signed-off-by: Willy Zhang <willyzhang@google.com>
226cb82 to
dee5779
Compare
79a62ef to
98bf376
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Temporary pull request to test CRT bzlmod migration on the CI