From 9b1c41166acd5b1b707001e3bb72550e2b066806 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Thu, 26 Mar 2020 10:44:11 -0400 Subject: [PATCH] fix version dir --- dist/index.js | 2 +- src/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index bf271fb..75de4d7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4601,7 +4601,7 @@ function downloadGo(versionSpec, stable) { core_1.debug(`extracted to ${extPath}`); // extracts with a root folder that matches the fileName downloaded const toolRoot = path.join(extPath, 'go'); - toolPath = yield tc.cacheDir(toolRoot, 'go', match.version); + toolPath = yield tc.cacheDir(toolRoot, 'go', makeSemver(match.version)); } } catch (error) { diff --git a/src/installer.ts b/src/installer.ts index 9107c7f..eb54706 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -33,7 +33,7 @@ export async function downloadGo( // extracts with a root folder that matches the fileName downloaded const toolRoot = path.join(extPath, 'go'); - toolPath = await tc.cacheDir(toolRoot, 'go', match.version); + toolPath = await tc.cacheDir(toolRoot, 'go', makeSemver(match.version)); } } catch (error) { throw new Error(`Failed to download version ${versionSpec}: ${error}`);