Skip to content

Commit 25a0991

Browse files
Rollback XLA archival change, current automation does not calculate the shasum correctly
Reverts 6fee019 PiperOrigin-RevId: 785830039
1 parent 295b92b commit 25a0991

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

third_party/xla/revision.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# To update XLA to a new revision,
1818
# a) update XLA_COMMIT to the new git commit hash
1919
# b) get the sha256 hash of the commit by running:
20-
# curl -L https://api.github.com/repos/openxla/xla/tarball/{git_hash} | sha256sum
20+
# curl -L https://github.com/openxla/xla/archive/<git hash>.tar.gz | sha256sum
2121
# and update XLA_SHA256 with the result.
2222

2323
# buildifier: disable=module-docstring

third_party/xla/workspace.bzl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ def repo():
2020
tf_http_archive(
2121
name = "xla",
2222
sha256 = XLA_SHA256,
23-
type = "tar.gz",
24-
strip_prefix = "openxla-xla-{commit}".format(commit = XLA_COMMIT[:7]),
25-
# We use an automated tool to update the revision.bzl file. GitHub prohibits the crawling of
26-
# web links (`/archive/`) links so we use the GitHub API endpoint to get the tarball
27-
# instead.
28-
urls = tf_mirror_urls("https://api.github.com/repos/openxla/xla/tarball/{commit}".format(commit = XLA_COMMIT)),
23+
strip_prefix = "xla-{commit}".format(commit = XLA_COMMIT),
24+
urls = tf_mirror_urls("https://github.com/openxla/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)),
2925
)
3026

3127
# For development, one often wants to make changes to the TF repository as well

0 commit comments

Comments
 (0)