Skip to content

Commit 70b8167

Browse files
committed
Upgrade Bazel to 8.6.0
1 parent 141063f commit 70b8167

6 files changed

Lines changed: 40 additions & 7 deletions

File tree

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
common --enable_workspace
2+
common --noenable_bzlmod
3+
common --noincompatible_disallow_empty_glob
4+
15
build --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm
26
build --action_env=BAZEL_LINKOPTS=-static-libgcc
37
build --action_env=CUDA_DIR=/usr/local/cuda

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ COMMIT_HASH = $(shell git log -1 --format=%h)
88
COPYRIGHT = "Garena Online Private Limited"
99
BAZELOPT =
1010
BAZELISK_BIN = $(shell command -v bazelisk 2>/dev/null || echo $(HOME)/go/bin/bazelisk)
11-
BAZEL_VERSION = 6.6.0
11+
BAZEL_VERSION = 8.6.0
1212
BAZEL = USE_BAZEL_VERSION=$(BAZEL_VERSION) $(BAZELISK_BIN)
1313
DATE = $(shell date "+%Y-%m-%d")
1414
DOCKER_TAG = $(DATE)-$(COMMIT_HASH)

docs/content/build.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ or `golang <https://golang.org/doc/install>`_ with version >= 1.16:
5050
# then follow the instructions on golang official website
5151
go env -w GOPROXY=https://goproxy.cn
5252
53-
wget https://mirrors.huaweicloud.com/bazel/6.6.0/bazel-6.6.0-linux-x86_64
54-
chmod +x bazel-6.6.0-linux-x86_64
53+
wget https://mirrors.huaweicloud.com/bazel/8.6.0/bazel-8.6.0-linux-x86_64
54+
chmod +x bazel-8.6.0-linux-x86_64
5555
mkdir -p $HOME/go/bin
56-
mv bazel-6.6.0-linux-x86_64 $HOME/go/bin/bazel
56+
mv bazel-8.6.0-linux-x86_64 $HOME/go/bin/bazel
5757
5858
export PATH=$PATH:$HOME/go/bin # or write to .bashrc / .zshrc
5959

envpool/workspace0.bzl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def workspace():
2525
maybe(
2626
http_archive,
2727
name = "rules_python",
28+
patches = [
29+
"//third_party/rules_python:py_repositories_protobuf34.patch",
30+
],
2831
sha256 = "690e0141724abb568267e003c7b6d9a54925df40c275a870a4d934161dc9dd53",
2932
strip_prefix = "rules_python-0.40.0",
3033
urls = [
@@ -45,10 +48,10 @@ def workspace():
4548
maybe(
4649
http_archive,
4750
name = "bazel_features",
48-
sha256 = "ba1282c1aa1d1fffdcf994ab32131d7c7551a9bc960fbf05f42d55a1b930cbfb",
49-
strip_prefix = "bazel_features-1.15.0",
51+
sha256 = "c26b4e69cf02fea24511a108d158188b9d8174426311aac59ce803a78d107648",
52+
strip_prefix = "bazel_features-1.43.0",
5053
urls = [
51-
"https://github.com/bazel-contrib/bazel_features/releases/download/v1.15.0/bazel_features-v1.15.0.tar.gz",
54+
"https://github.com/bazel-contrib/bazel_features/releases/download/v1.43.0/bazel_features-v1.43.0.tar.gz",
5255
],
5356
)
5457

third_party/rules_python/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports_files(["py_repositories_protobuf34.patch"])
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
--- python/private/py_repositories.bzl 2026-03-21 21:54:45
2+
+++ python/private/py_repositories.bzl 2026-03-21 21:54:45
3+
@@ -55,16 +55,16 @@
4+
)
5+
http_archive(
6+
name = "rules_cc",
7+
- sha256 = "d9bdd3ec66b6871456ec9c965809f43a0901e692d754885e89293807762d3d80",
8+
- strip_prefix = "rules_cc-0.0.13",
9+
- urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.13/rules_cc-0.0.13.tar.gz"],
10+
+ sha256 = "bbf1ae2f83305b7053b11e4467d317a7ba3517a12cef608543c1b1c5bf48a4df",
11+
+ strip_prefix = "rules_cc-0.0.16",
12+
+ urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.16/rules_cc-0.0.16.tar.gz"],
13+
)
14+
15+
# Needed by rules_cc, triggerred by @rules_java_prebuilt in Bazel by using @rules_cc//cc:defs.bzl
16+
http_archive(
17+
name = "protobuf",
18+
- sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa",
19+
- strip_prefix = "protobuf-27.0",
20+
- url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz",
21+
+ sha256 = "e4e6ff10760cf747a2decd1867741f561b216bd60cc4038c87564713a6da1848",
22+
+ strip_prefix = "protobuf-34.1",
23+
+ url = "https://github.com/protocolbuffers/protobuf/releases/download/v34.1/protobuf-34.1.tar.gz",
24+
)
25+
pypi_deps()

0 commit comments

Comments
 (0)