We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f61e3 commit c4f7446Copy full SHA for c4f7446
build_rust.py
@@ -537,11 +537,12 @@ def MakeVersionStamp(git_hash):
537
538
def GetLatestRustCommit():
539
"""Get the latest commit hash in the LLVM monorepo."""
540
+ url = (
541
+ 'https://chromium.googlesource.com/external/' +
542
+ 'github.com/rust-lang/rust/+/refs/heads/master?format=JSON' # nocheck
543
+ )
544
main = json.loads(
- urllib.request.urlopen('https://chromium.googlesource.com/external/' +
- 'github.com/rust-lang/rust/' +
- '+/refs/heads/main?format=JSON').read().decode(
- "utf-8").replace(")]}'", ""))
545
+ urllib.request.urlopen(url).read().decode("utf-8").replace(")]}'", ""))
546
return main['commit']
547
548
0 commit comments