Skip to content

Commit 6ed3173

Browse files
zoyahavtfx-copybara
authored andcommitted
Use @platforms instead of @bazel_tools//platforms to specify constraints.
PiperOrigin-RevId: 552523135
1 parent 32e3461 commit 6ed3173

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

struct2tensor/workspace.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ def struct2tensor_workspace():
2828
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz",
2929
)
3030

31+
_PLATFORMS_VERSION = "0.0.6"
32+
http_archive(
33+
name = "platforms",
34+
urls = [
35+
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (_PLATFORMS_VERSION, _PLATFORMS_VERSION),
36+
"https://github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (_PLATFORMS_VERSION, _PLATFORMS_VERSION),
37+
],
38+
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
39+
)
40+
3141
# LINT.IfChange(thrift_archive_version)
3242
http_archive(
3343
name = "thrift",

third_party/arrow.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ cc_library(
147147
config_setting(
148148
name = "windows",
149149
constraint_values = [
150-
"@bazel_tools//platforms:windows",
150+
"@platforms//os:windows",
151151
],
152152
)
153153

0 commit comments

Comments
 (0)