Skip to content

Commit

Permalink
use @platforms instead of @bazel_tools//platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
LinGeLin authored and rhdong committed Sep 17, 2024
1 parent 87b29aa commit f5f4853
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ http_archive(
],
)

http_archive(
name = "platforms",
sha256 = "079945598e4b6cc075846f7fd6a9d0857c33a7afc0de868c2ccb96405225135d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.4/platforms-0.0.4.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.4/platforms-0.0.4.tar.gz",
],
)

http_archive(
name = "sparsehash_c11",
build_file = "//third_party:sparsehash_c11.BUILD",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_recommenders_addons/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package(default_visibility = ["//visibility:public"])

config_setting(
name = "windows",
constraint_values = ["@bazel_tools//platforms:windows"],
constraint_values = ["@platforms//os:windows"],
)

py_library(
Expand Down

0 comments on commit f5f4853

Please sign in to comment.