Skip to content

Commit

Permalink
fixing install from dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Shibanov committed Jun 23, 2020
1 parent e71bd5d commit 20646b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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}`);
Expand Down
4 changes: 1 addition & 3 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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}`);
}
Expand Down

0 comments on commit 20646b8

Please sign in to comment.