Skip to content

Commit c40e0fb

Browse files
schmidt-sebastiancopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 520956127
1 parent 1ff80f9 commit c40e0fb

File tree

4 files changed

+73
-73
lines changed

4 files changed

+73
-73
lines changed

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.0
1+
6.1.1

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RUN pip3 install tf_slim
6161
RUN ln -s /usr/bin/python3 /usr/bin/python
6262

6363
# Install bazel
64-
ARG BAZEL_VERSION=5.2.0
64+
ARG BAZEL_VERSION=6.1.1
6565
RUN mkdir /bazel && \
6666
wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\
6767
azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \

WORKSPACE

+70-70
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,76 @@ load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependen
5454

5555
rules_foreign_cc_dependencies()
5656

57+
http_archive(
58+
name = "com_google_protobuf",
59+
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
60+
strip_prefix = "protobuf-3.19.1",
61+
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
62+
patches = [
63+
"@//third_party:com_google_protobuf_fixes.diff"
64+
],
65+
patch_args = [
66+
"-p1",
67+
],
68+
)
69+
70+
# Load Zlib before initializing TensorFlow and the iOS build rules to guarantee
71+
# that the target @zlib//:mini_zlib is available
72+
http_archive(
73+
name = "zlib",
74+
build_file = "@//third_party:zlib.BUILD",
75+
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
76+
strip_prefix = "zlib-1.2.11",
77+
urls = [
78+
"http://mirror.bazel.build/zlib.net/fossils/zlib-1.2.11.tar.gz",
79+
"http://zlib.net/fossils/zlib-1.2.11.tar.gz", # 2017-01-15
80+
],
81+
patches = [
82+
"@//third_party:zlib.diff",
83+
],
84+
patch_args = [
85+
"-p1",
86+
],
87+
)
88+
89+
# iOS basic build deps.
90+
http_archive(
91+
name = "build_bazel_rules_apple",
92+
sha256 = "3e2c7ae0ddd181c4053b6491dad1d01ae29011bc322ca87eea45957c76d3a0c3",
93+
url = "https://github.com/bazelbuild/rules_apple/releases/download/2.1.0/rules_apple.2.1.0.tar.gz",
94+
patches = [
95+
# Bypass checking ios unit test runner when building MP ios applications.
96+
"@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
97+
],
98+
patch_args = [
99+
"-p1",
100+
],
101+
)
102+
103+
load(
104+
"@build_bazel_rules_apple//apple:repositories.bzl",
105+
"apple_rules_dependencies",
106+
)
107+
apple_rules_dependencies()
108+
109+
load(
110+
"@build_bazel_rules_swift//swift:repositories.bzl",
111+
"swift_rules_dependencies",
112+
)
113+
swift_rules_dependencies()
114+
115+
load(
116+
"@build_bazel_rules_swift//swift:extras.bzl",
117+
"swift_rules_extra_dependencies",
118+
)
119+
swift_rules_extra_dependencies()
120+
121+
load(
122+
"@build_bazel_apple_support//lib:repositories.bzl",
123+
"apple_support_dependencies",
124+
)
125+
apple_support_dependencies()
126+
57127
# This is used to select all contents of the archives for CMake-based packages to give CMake access to them.
58128
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
59129

@@ -133,19 +203,6 @@ http_archive(
133203
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
134204
)
135205

136-
http_archive(
137-
name = "com_google_protobuf",
138-
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
139-
strip_prefix = "protobuf-3.19.1",
140-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
141-
patches = [
142-
"@//third_party:com_google_protobuf_fixes.diff"
143-
],
144-
patch_args = [
145-
"-p1",
146-
],
147-
)
148-
149206
load("@//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
150207
flatbuffers()
151208

@@ -319,63 +376,6 @@ http_archive(
319376
],
320377
)
321378

322-
# Load Zlib before initializing TensorFlow and the iOS build rules to guarantee
323-
# that the target @zlib//:mini_zlib is available
324-
http_archive(
325-
name = "zlib",
326-
build_file = "@//third_party:zlib.BUILD",
327-
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
328-
strip_prefix = "zlib-1.2.11",
329-
urls = [
330-
"http://mirror.bazel.build/zlib.net/fossils/zlib-1.2.11.tar.gz",
331-
"http://zlib.net/fossils/zlib-1.2.11.tar.gz", # 2017-01-15
332-
],
333-
patches = [
334-
"@//third_party:zlib.diff",
335-
],
336-
patch_args = [
337-
"-p1",
338-
],
339-
)
340-
341-
# iOS basic build deps.
342-
http_archive(
343-
name = "build_bazel_rules_apple",
344-
sha256 = "f94e6dddf74739ef5cb30f000e13a2a613f6ebfa5e63588305a71fce8a8a9911",
345-
url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.3/rules_apple.1.1.3.tar.gz",
346-
patches = [
347-
# Bypass checking ios unit test runner when building MP ios applications.
348-
"@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
349-
],
350-
patch_args = [
351-
"-p1",
352-
],
353-
)
354-
355-
load(
356-
"@build_bazel_rules_apple//apple:repositories.bzl",
357-
"apple_rules_dependencies",
358-
)
359-
apple_rules_dependencies()
360-
361-
load(
362-
"@build_bazel_rules_swift//swift:repositories.bzl",
363-
"swift_rules_dependencies",
364-
)
365-
swift_rules_dependencies()
366-
367-
load(
368-
"@build_bazel_rules_swift//swift:extras.bzl",
369-
"swift_rules_extra_dependencies",
370-
)
371-
swift_rules_extra_dependencies()
372-
373-
load(
374-
"@build_bazel_apple_support//lib:repositories.bzl",
375-
"apple_support_dependencies",
376-
)
377-
apple_support_dependencies()
378-
379379
# More iOS deps.
380380

381381
http_archive(

docs/getting_started/install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ next section.
577577
578578
Option 1. Follow
579579
[the official Bazel documentation](https://docs.bazel.build/versions/master/install-windows.html)
580-
to install Bazel 5.2.0 or higher.
580+
to install Bazel 6.1.1 or higher.
581581
582582
Option 2. Follow the official
583583
[Bazel documentation](https://docs.bazel.build/versions/master/install-bazelisk.html)

0 commit comments

Comments
 (0)