File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ common --enable_workspace
2+ common --noenable_bzlmod
3+ common --noincompatible_disallow_empty_glob
4+
15build --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm
26build --action_env=BAZEL_LINKOPTS=-static-libgcc
37build --action_env=CUDA_DIR=/usr/local/cuda
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ COMMIT_HASH = $(shell git log -1 --format=%h)
88COPYRIGHT = "Garena Online Private Limited"
99BAZELOPT =
1010BAZELISK_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
1212BAZEL = USE_BAZEL_VERSION=$(BAZEL_VERSION ) $(BAZELISK_BIN )
1313DATE = $(shell date "+% Y-% m-% d")
1414DOCKER_TAG = $(DATE ) -$(COMMIT_HASH )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1+ exports_files (["py_repositories_protobuf34.patch" ])
Original file line number Diff line number Diff line change 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()
You can’t perform that action at this time.
0 commit comments