Skip to content

Commit

Permalink
Get rustc commit hash from channel manifest
Browse files Browse the repository at this point in the history
… added in rust-lang/rust#44218,
instead of using the GitHub API.

And upgrade to rustc 1.22.0-nightly (d93036a04 2017-09-07)
  • Loading branch information
SimonSapin committed Sep 8, 2017
1 parent 4407216 commit 3c0680a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions python/servo/bootstrap_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ def bootstrap_rustc(self, force=False, target=[], stable=False):
base_url = static_s3
else:
import toml
import re
channel = "%s/%s/channel-rust-nightly.toml" % (static_s3, self.rust_nightly_date())
version_string = toml.load(urllib2.urlopen(channel))["pkg"]["rustc"]["version"]
short_commit = re.search("\(([0-9a-f]+) ", version_string).group(1)
commit_api = "https://api.github.com/repos/rust-lang/rust/commits/" + short_commit
nightly_commit_hash = json.load(urllib2.urlopen(commit_api))["sha"]
nightly_commit_hash = toml.load(urllib2.urlopen(channel))["pkg"]["rustc"]["git_commit_hash"]

base_url = "https://s3.amazonaws.com/rust-lang-ci/rustc-builds"
if not self.config["build"]["llvm-assertions"]:
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2017-08-31
nightly-2017-09-08

0 comments on commit 3c0680a

Please sign in to comment.