mirror of
https://github.com/ROCm/jax.git
synced 2025-04-23 23:16:06 +00:00

Without this change build script fails with the following message: ``` Encountered error while reading extension file 'tensorflow/workspace.bzl': no such package '@org_tensorflow//tensorflow': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement. ``` This PR simply implements the suggestion in the error. I was able to successfully build after applying the change.
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "io_bazel_rules_closure",
|
|
sha256 = "a38539c5b5c358548e75b44141b4ab637bba7c4dc02b46b1f62a96d6433f56ae",
|
|
strip_prefix = "rules_closure-dbb96841cc0a5fb2664c37822803b06dab20c7d1",
|
|
urls = [
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz",
|
|
"https://github.com/bazelbuild/rules_closure/archive/dbb96841cc0a5fb2664c37822803b06dab20c7d1.tar.gz",
|
|
],
|
|
)
|
|
|
|
# To update TensorFlow to a new revision,
|
|
# a) update URL and strip_prefix to the new git commit hash
|
|
# b) get the sha256 hash of the commit by running:
|
|
# curl -L https://github.com/tensorflow/tensorflow/archive/<git hash>.tar.gz | sha256sum
|
|
# and update the sha256 with the result.
|
|
http_archive(
|
|
name = "org_tensorflow",
|
|
sha256 = "0fa744b8b806cd415e6a7747a0618306b816fa7329f45c94a865a2c763efdc47",
|
|
strip_prefix = "tensorflow-c07297759059a953351f1d5e531b6e6af878365c",
|
|
urls = [
|
|
"https://github.com/tensorflow/tensorflow/archive/c07297759059a953351f1d5e531b6e6af878365c.tar.gz",
|
|
],
|
|
)
|
|
|
|
# For development, one can use a local TF repository instead.
|
|
# local_repository(
|
|
# name = "org_tensorflow",
|
|
# path = "tensorflow",
|
|
# )
|
|
|
|
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
|
|
|
|
tf_workspace(
|
|
path_prefix = "",
|
|
tf_repo_name = "org_tensorflow",
|
|
)
|