-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR enables Bzlmod as the default external dependencies system for Bazel. Changes included: - Enable bzlmod by default in `.bazelrc`. - Renamed `io_bazel` to `_main` at necessary locations. - Added lockfile `MODULE.bazel.lock`. We should enable `--lockfile_mode=error` on CI and `--lockfile_mode=update` for local builds after fixing some issues in the lock file feature, probably with 6.4.0. - Replaced distdir with repository cache (http artifact cache) in the offline bootstrap build. This will eventually be replaced by vendoring and packaging dependencies. - Replaced `--override_repository` hack with repository cache (http artifact cache) for running integration tests without network access. This will eventually be replaced by a true shared repository cache. - Only keep `--experimental_repository_cache_hardlinks` for macOS inside integration tests. On Linux, it'll trigger `invalid cross-device link` error because the file system of the sandbox dir is different from the repo cache dir inside docker container. - Moved common CI flags to .bazelrc for better maintenance. - Added all Maven coords in MODULE.bazel, patched rules_jvm_external to fix some Bzlmod issues. Next step: - Remove WORKSPACE and clean up distdir_deps, distdir.bzl. - Enable `--lockfile_mode=error` on CI and `--lockfile_mode=update` for local builds Closes #19087 Fixes #18957 PiperOrigin-RevId: 563825184 Change-Id: Ibf06418688bd568b38fd4aa73ad8328acfbaa13c
- Loading branch information
1 parent
3f728e4
commit 136dae1
Showing
24 changed files
with
4,432 additions
and
369 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.