From 20646b8e3574623246ef4d991ee830102cba21c5 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 23 Jun 2020 11:46:17 +0300 Subject: [PATCH] fixing install from dist --- dist/index.js | 4 +--- src/installer.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 29df83aeb..8e3ff4b5f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6955,7 +6955,6 @@ function getGo(versionSpec, stable, auth) { info = yield getInfoFromManifest(makeSemver(versionSpec), stable, auth); console.log(`info is ${info}`); if (info) { - console.log(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`); downloadPath = yield installGoVersion(info, auth); } else { @@ -6981,9 +6980,8 @@ function getGo(versionSpec, stable, auth) { if (!info) { throw new Error(`Unable to find Go version '${versionSpec}' for platform ${osPlat} and architecture ${osArch}.`); } - console.log(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`); try { - downloadPath = yield installGoVersion(info, auth); + downloadPath = yield installGoVersion(info, undefined); } catch (err) { throw new Error(`Failed to download version ${versionSpec}: ${err}`); diff --git a/src/installer.ts b/src/installer.ts index 5d2826e0a..22338a1ae 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -53,7 +53,6 @@ export async function getGo( info = await getInfoFromManifest(makeSemver(versionSpec), stable, auth); console.log(`info is ${info}`); if (info) { - console.log(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`); downloadPath = await installGoVersion(info, auth); } else { console.log( @@ -86,9 +85,8 @@ export async function getGo( ); } - console.log(`Acquiring ${info.resolvedVersion} from ${info.downloadUrl}`); try { - downloadPath = await installGoVersion(info, auth); + downloadPath = await installGoVersion(info, undefined); } catch (err) { throw new Error(`Failed to download version ${versionSpec}: ${err}`); }