File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments