From 49a71e44df6cc35061828c5289632588b556ab1a Mon Sep 17 00:00:00 2001 From: softprops Date: Sat, 26 Oct 2019 17:01:41 -0400 Subject: [PATCH] update rustup before for reliable nightly toolchain tool availability --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.ts b/src/main.ts index 0d4db90..5143c57 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,6 +17,11 @@ async function run() { if(version) { await rustup.install(); + if (os.platform() !== 'darwin') { + // update the GitHub managed VM version of rustup + // to leverage newer features like "latest latest compatible nightly" + await exec.exec('rustup', ['self', 'update']); + } await exec.exec('rustup', ['default', version]); await exec.exec('rustup', ['update', version]);