Skip to content

Commit

Permalink
[Tool] Added Bazel 7 basic support (#35362)
Browse files Browse the repository at this point in the history
- Added Bazel 7 to the support bazel versions.
- Changed the default Bazel version to 7.
- Fixed Android Binder build issue.

Closes #35362

PiperOrigin-RevId: 592946781
  • Loading branch information
veblush authored and Copybara-Service committed Dec 21, 2023
1 parent 594d370 commit 45aecbe
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android_workspace()
# be invoked by binder transport implementation through JNI.
local_repository(
name = "binder_transport_android_helper",
path = "./src/core/ext/transport/binder/java",
path = "src/core/ext/transport/binder/java",
)

# Prevents bazel's '...' expansion from including the following folder.
Expand Down
1 change: 1 addition & 0 deletions bazel/supported_versions.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
6.4.0
7.0.0
3 changes: 3 additions & 0 deletions bazel/update_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ function upload {
upload github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-linux-x86_64
upload github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-darwin-x86_64
upload github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-windows-x86_64.exe
upload github.com/bazelbuild/bazel/releases/download/7.0.0/bazel-7.0.0-linux-x86_64
upload github.com/bazelbuild/bazel/releases/download/7.0.0/bazel-7.0.0-darwin-x86_64
upload github.com/bazelbuild/bazel/releases/download/7.0.0/bazel-7.0.0-windows-x86_64.exe

# Collect the github archives to mirror from grpc_deps.bzl
grep -o '"https://github.com/[^"]*"' bazel/grpc_deps.bzl | sed 's/^"https:\/\///' | sed 's/"$//' | while read -r line ; do
Expand Down
1 change: 1 addition & 0 deletions doc/bazel_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ compatibility range. The currently supported versions are captured by the
following list:

- [`6.4.0`](https://github.com/bazelbuild/bazel/releases/tag/6.4.0)
- [`7.0.0`](https://github.com/bazelbuild/bazel/releases/tag/7.0.0)
5 changes: 4 additions & 1 deletion src/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ package(
# the top-level BUILD file that have not yet been moved here. Should go away
# once the transition is complete.
exports_files(
glob(["**"]),
glob(
["**"],
exclude = ["ext/transport/binder/java/**"],
),
visibility = ["//:__subpackages__"],
)

Expand Down
1 change: 1 addition & 0 deletions tools/bazelify_tests/test/supported_bazel_versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ This file is generated from the supported_bazel_versions.bzl.template

SUPPORTED_BAZEL_VERSIONS = [
"6.4.0",
"7.0.0",
]

0 comments on commit 45aecbe

Please sign in to comment.