Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Align dates in rustup toolchains with those in rustc -V #27

Merged
merged 2 commits into from
Dec 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion promote-release/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ fn main() {
release: env::args().nth(2).unwrap(),
secrets: t!(secrets.parse()),
handle: Easy::new(),
date: output(Command::new("date").arg("+%Y-%m-%d")).trim().to_string(),
// For Nightly, this is running soon after midnight
// so the date of 10 minutes ago is yesterday,
// which likely matches the commit date of the latest commit on the master branch:
// https://github.com/rust-lang/rust-central-station/pull/27
date: output(Command::new("date").arg("--date=10 minutes ago").arg("+%Y-%m-%d"))
.trim().to_string(),
current_version: None,
}.run()
}
Expand Down