diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 79f25ac..69ea0fe 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -25,7 +25,7 @@ jobs: go-version: ^1.13.6 - name: validate version - run: go version | grep "go1.13." + run: go version | grep "go1." - name: setup-go 1.13 uses: ./ @@ -42,3 +42,8 @@ jobs: - name: validate version run: go version | grep "go1.12.9" + + - name: show cache + run: | + echo go versions in tool cache: + echo $(ls $RUNNER_TOOL_CACHE/go) diff --git a/dist/index.js b/dist/index.js index 21783e6..bf271fb 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', versionSpec); + toolPath = yield tc.cacheDir(toolRoot, 'go', match.version); } } catch (error) { diff --git a/src/installer.ts b/src/installer.ts index 92b0c8f..9107c7f 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', versionSpec); + toolPath = await tc.cacheDir(toolRoot, 'go', match.version); } } catch (error) { throw new Error(`Failed to download version ${versionSpec}: ${error}`);