Skip to content

Commit 23bbfb8

Browse files
committed
Bazel 8
1 parent 7e1eaa0 commit 23bbfb8

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ build --workspace_status_command=./tools/workspace_status.sh
2727
# TODO(b/315853820): Needed for Bazel 7.0, until migrated to bzlmod
2828
build --noenable_bzlmod
2929

30+
# TODO(b/315853820): Needed for Bazel 8.0, until migrated to bzlmod
31+
build --enable_workspace
32+
3033
# Use the following C++ standard
3134
build --cxxopt -std=c++17
3235

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0
1+
8.4.2

WORKSPACE

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ load("//tensorflow:workspace.bzl", "workspace")
1919

2020
workspace()
2121

22+
# init for bazel_skylib
23+
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
24+
25+
bazel_skylib_workspace()
26+
2227
# init for rules_shell
2328
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")
2429

@@ -40,13 +45,11 @@ load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_
4045

4146
hedron_compile_commands_setup()
4247

43-
_rules_python_version = "0.26.0"
44-
4548
http_archive(
4649
name = "rules_python",
47-
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
48-
strip_prefix = "rules_python-{}".format(_rules_python_version),
49-
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/{}.tar.gz".format(_rules_python_version),
50+
sha256 = "2f5c284fbb4e86045c2632d3573fc006facbca5d1fa02976e89dc0cd5488b590",
51+
strip_prefix = "rules_python-1.6.3",
52+
url = "https://github.com/bazel-contrib/rules_python/releases/download/1.6.3/rules_python-1.6.3.tar.gz",
5053
)
5154

5255
load("@rules_python//python:repositories.bzl", "py_repositories")

tensorflow/workspace.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
2020
# https://github.com/bazelbuild/bazel-skylib/releases
2121
tf_http_archive(
2222
name = "bazel_skylib",
23-
sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0",
23+
sha256 = "6e78f0e57de26801f6f564fa7c4a48dc8b36873e416257a92bbb0937eeac8446",
2424
urls = [
25-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz",
26-
"https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz",
25+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.8.2/bazel-skylib-1.8.2.tar.gz",
26+
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.8.2/bazel-skylib-1.8.2.tar.gz",
2727
],
2828
)
2929

0 commit comments

Comments
 (0)