Skip to content

Commit 2be42f1

Browse files
christisgrtg0795
authored andcommitted
internal change
PiperOrigin-RevId: 482868865
1 parent e76a273 commit 2be42f1

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

WORKSPACE

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ workspace(name = "tf_serving")
1313
# 3. Request the new archive to be mirrored on mirror.bazel.build for more
1414
# reliable downloads.
1515
load("//tensorflow_serving:repo.bzl", "tensorflow_http_archive")
16+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1617
tensorflow_http_archive(
1718
name = "org_tensorflow",
1819
sha256 = "5ae3ba26552af0d5990e7937ca3079eb6f36d9d491b9a8b45dca6add91e35f98",
1920
git_commit = "ba36eac6614d5c1f1e9bab6d2399749b68e8732e",
2021
)
2122

23+
http_archive(
24+
name = "bazel_skylib",
25+
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
26+
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
27+
)
28+
2229
# Import all of TensorFlow Serving's external dependencies.
2330
# Downstream projects (projects importing TensorFlow Serving) need to
2431
# duplicate all code below in their WORKSPACE file in order to also initialize
@@ -27,11 +34,8 @@ load("//tensorflow_serving:workspace.bzl", "tf_serving_workspace")
2734
tf_serving_workspace()
2835

2936
# Check bazel version requirement, which is stricter than TensorFlow's.
30-
load(
31-
"@org_tensorflow//tensorflow:version_check.bzl",
32-
"check_bazel_version_at_least"
33-
)
34-
check_bazel_version_at_least("5.1.1")
37+
load("@bazel_skylib//lib:versions.bzl", "versions")
38+
versions.check(minimum_bazel_version = "5.1.1")
3539

3640
# Initialize TensorFlow's external dependencies.
3741
load("@org_tensorflow//tensorflow:workspace3.bzl", "workspace")

tensorflow_serving/workspace.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
1010
def tf_serving_workspace():
1111
"""All TensorFlow Serving external dependencies."""
1212

13+
# ===== Bazel skylib dependency =====
14+
http_archive(
15+
name = "bazel_skylib",
16+
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
17+
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
18+
)
19+
1320
# ===== Bazel package rules dependency =====
1421
http_archive(
1522
name = "rules_pkg",

0 commit comments

Comments
 (0)