@ -8,13 +8,13 @@ import path from 'path';
import * as main from '../src/main' ;
import * as im from '../src/installer' ;
let goJsonData = require ( './data/golang-dl.json' ) ;
let matchers = require ( '../matchers.json' ) ;
let goTestManifest = require ( './data/versions-manifest.json' ) ;
le t matcherPattern = matchers . problemMatcher [ 0 ] . pattern [ 0 ] ;
le t matcherRegExp = new RegExp ( matcherPattern . regexp ) ;
le t win32Join = path . win32 . join ;
le t posixJoin = path . posix . join ;
import goJsonData from './data/golang-dl.json' ;
import matchers from '../matchers.json' ;
import goTestManifest from './data/versions-manifest.json' ;
cons t matcherPattern = matchers . problemMatcher [ 0 ] . pattern [ 0 ] ;
cons t matcherRegExp = new RegExp ( matcherPattern . regexp ) ;
cons t win32Join = path . win32 . join ;
cons t posixJoin = path . posix . join ;
describe ( 'setup-go' , ( ) = > {
let inputs = { } as any ;
@ -133,7 +133,7 @@ describe('setup-go', () => {
os . platform = 'darwin' ;
os . arch = 'x64' ;
le t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
cons t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
expect ( match ) . toBeDefined ( ) ;
expect ( match ! . resolvedVersion ) . toBe ( '1.9.7' ) ;
expect ( match ! . type ) . toBe ( 'manifest' ) ;
@ -146,7 +146,7 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
cons t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
expect ( match ) . toBeDefined ( ) ;
expect ( match ! . resolvedVersion ) . toBe ( '1.9.7' ) ;
expect ( match ! . type ) . toBe ( 'manifest' ) ;
@ -159,7 +159,7 @@ describe('setup-go', () => {
os . platform = 'win32' ;
os . arch = 'x64' ;
le t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
cons t match = await im . getInfoFromManifest ( '1.9.7' , true , 'mocktoken' ) ;
expect ( match ) . toBeDefined ( ) ;
expect ( match ! . resolvedVersion ) . toBe ( '1.9.7' ) ;
expect ( match ! . type ) . toBe ( 'manifest' ) ;
@ -173,11 +173,11 @@ describe('setup-go', () => {
os . arch = 'x64' ;
// spec: 1.13.0 => 1.13
le t match : im.IGoVersion | undefined = await im . findMatch ( '1.13.0' ) ;
cons t match : im.IGoVersion | undefined = await im . findMatch ( '1.13.0' ) ;
expect ( match ) . toBeDefined ( ) ;
le t version : string = match ? match . version : '' ;
cons t version : string = match ? match . version : '' ;
expect ( version ) . toBe ( 'go1.13' ) ;
le t fileName = match ? match . files [ 0 ] . filename : '' ;
cons t fileName = match ? match . files [ 0 ] . filename : '' ;
expect ( fileName ) . toBe ( 'go1.13.darwin-amd64.tar.gz' ) ;
} ) ;
@ -186,11 +186,11 @@ describe('setup-go', () => {
os . arch = 'x64' ;
// spec: 1.13 => 1.13.7 (latest)
le t match : im.IGoVersion | undefined = await im . findMatch ( '1.13' ) ;
cons t match : im.IGoVersion | undefined = await im . findMatch ( '1.13' ) ;
expect ( match ) . toBeDefined ( ) ;
le t version : string = match ? match . version : '' ;
cons t version : string = match ? match . version : '' ;
expect ( version ) . toBe ( 'go1.13.7' ) ;
le t fileName = match ? match . files [ 0 ] . filename : '' ;
cons t fileName = match ? match . files [ 0 ] . filename : '' ;
expect ( fileName ) . toBe ( 'go1.13.7.linux-amd64.tar.gz' ) ;
} ) ;
@ -199,11 +199,11 @@ describe('setup-go', () => {
os . arch = 'x64' ;
// spec: ^1.13.6 => 1.13.7
le t match : im.IGoVersion | undefined = await im . findMatch ( '^1.13.6' ) ;
cons t match : im.IGoVersion | undefined = await im . findMatch ( '^1.13.6' ) ;
expect ( match ) . toBeDefined ( ) ;
le t version : string = match ? match . version : '' ;
cons t version : string = match ? match . version : '' ;
expect ( version ) . toBe ( 'go1.13.7' ) ;
le t fileName = match ? match . files [ 0 ] . filename : '' ;
cons t fileName = match ? match . files [ 0 ] . filename : '' ;
expect ( fileName ) . toBe ( 'go1.13.7.linux-amd64.tar.gz' ) ;
} ) ;
@ -212,11 +212,11 @@ describe('setup-go', () => {
os . arch = 'x32' ;
// spec: 1 => 1.13.7 (latest)
le t match : im.IGoVersion | undefined = await im . findMatch ( '1' ) ;
cons t match : im.IGoVersion | undefined = await im . findMatch ( '1' ) ;
expect ( match ) . toBeDefined ( ) ;
le t version : string = match ? match . version : '' ;
cons t version : string = match ? match . version : '' ;
expect ( version ) . toBe ( 'go1.13.7' ) ;
le t fileName = match ? match . files [ 0 ] . filename : '' ;
cons t fileName = match ? match . files [ 0 ] . filename : '' ;
expect ( fileName ) . toBe ( 'go1.13.7.windows-386.zip' ) ;
} ) ;
@ -225,11 +225,11 @@ describe('setup-go', () => {
os . arch = 'x64' ;
// spec: 1.14, stable=false => go1.14rc1
le t match : im.IGoVersion | undefined = await im . findMatch ( '1.14.0-rc.1' ) ;
cons t match : im.IGoVersion | undefined = await im . findMatch ( '1.14.0-rc.1' ) ;
expect ( match ) . toBeDefined ( ) ;
le t version : string = match ? match . version : '' ;
cons t version : string = match ? match . version : '' ;
expect ( version ) . toBe ( 'go1.14rc1' ) ;
le t fileName = match ? match . files [ 0 ] . filename : '' ;
cons t fileName = match ? match . files [ 0 ] . filename : '' ;
expect ( fileName ) . toBe ( 'go1.14rc1.linux-amd64.tar.gz' ) ;
} ) ;
@ -237,7 +237,7 @@ describe('setup-go', () => {
inputs [ 'go-version' ] = '1.13.0' ;
inputs . stable = 'true' ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
@ -249,7 +249,7 @@ describe('setup-go', () => {
inSpy . mockImplementation ( name = > inputs [ name ] ) ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
@ -260,10 +260,10 @@ describe('setup-go', () => {
inputs [ 'go-version' ] = '1.13.0' ;
inSpy . mockImplementation ( name = > inputs [ name ] ) ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
le t vars : { [ key : string ] : string } = { } ;
cons t vars : { [ key : string ] : string } = { } ;
exportVarSpy . mockImplementation ( ( name : string , val : string ) = > {
vars [ name ] = val ;
} ) ;
@ -276,10 +276,10 @@ describe('setup-go', () => {
inputs [ 'go-version' ] = '1.8' ;
inSpy . mockImplementation ( name = > inputs [ name ] ) ;
le t toolPath = path . normalize ( '/cache/go/1.8.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.8.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
le t vars : { [ key : string ] : string } = { } ;
cons t vars : { [ key : string ] : string } = { } ;
exportVarSpy . mockImplementation ( ( name : string , val : string ) = > {
vars [ name ] = val ;
} ) ;
@ -293,7 +293,7 @@ describe('setup-go', () => {
it ( 'finds a version of go already in the cache' , async ( ) = > {
inputs [ 'go-version' ] = '1.13.0' ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
@ -302,16 +302,16 @@ describe('setup-go', () => {
it ( 'finds a version in the cache and adds it to the path' , async ( ) = > {
inputs [ 'go-version' ] = '1.13.0' ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
findSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( cnSpy ) . toHaveBeenCalledWith ( ` ::add-path:: ${ expPath } ${ osm . EOL } ` ) ;
} ) ;
it ( 'handles unhandled error and reports error' , async ( ) = > {
le t errMsg = 'unhandled error message' ;
cons t errMsg = 'unhandled error message' ;
inputs [ 'go-version' ] = '1.13.0' ;
findSpy . mockImplementation ( ( ) = > {
@ -329,12 +329,12 @@ describe('setup-go', () => {
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.0/x64' ) ;
extractTarSpy . mockImplementation ( ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( dlSpy ) . toHaveBeenCalled ( ) ;
expect ( extractTarSpy ) . toHaveBeenCalled ( ) ;
@ -352,12 +352,12 @@ describe('setup-go', () => {
dlSpy . mockImplementation ( ( ) = > 'C:\\temp\\some\\path' ) ;
extractZipSpy . mockImplementation ( ( ) = > 'C:\\temp\\some\\other\\path' ) ;
le t toolPath = path . normalize ( 'C:\\cache\\go\\1.13.0\\x64' ) ;
cons t toolPath = path . normalize ( 'C:\\cache\\go\\1.13.0\\x64' ) ;
cacheSpy . mockImplementation ( ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . win32 . join ( toolPath , 'bin' ) ;
cons t expPath = path . win32 . join ( toolPath , 'bin' ) ;
expect ( dlSpy ) . toHaveBeenCalledWith (
'https://storage.googleapis.com/golang/go1.13.1.windows-amd64.zip' ,
'C:\\temp\\go1.13.1.windows-amd64.zip' ,
@ -384,25 +384,25 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t versionSpec = '1.12.16' ;
cons t versionSpec = '1.12.16' ;
inputs [ 'go-version' ] = versionSpec ;
inputs [ 'token' ] = 'faketoken' ;
le t expectedUrl =
cons t expectedUrl =
'https://github.com/actions/go-versions/releases/download/1.12.16-20200616.20/go-1.12.16-linux-x64.tar.gz' ;
// ... but not in the local cache
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.12.16/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.12.16/x64' ) ;
extractTarSpy . mockImplementation ( async ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( dlSpy ) . toHaveBeenCalled ( ) ;
expect ( extractTarSpy ) . toHaveBeenCalled ( ) ;
@ -421,25 +421,25 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t versionSpec = '1.12' ;
cons t versionSpec = '1.12' ;
inputs [ 'go-version' ] = versionSpec ;
inputs [ 'token' ] = 'faketoken' ;
le t expectedUrl =
cons t expectedUrl =
'https://github.com/actions/go-versions/releases/download/1.12.17-20200616.21/go-1.12.17-linux-x64.tar.gz' ;
// ... but not in the local cache
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.12.17/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.12.17/x64' ) ;
extractTarSpy . mockImplementation ( async ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( dlSpy ) . toHaveBeenCalled ( ) ;
expect ( extractTarSpy ) . toHaveBeenCalled ( ) ;
@ -458,7 +458,7 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t versionSpec = '1.12.14' ;
cons t versionSpec = '1.12.14' ;
inputs [ 'go-version' ] = versionSpec ;
inputs [ 'token' ] = 'faketoken' ;
@ -467,13 +467,13 @@ describe('setup-go', () => {
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.12.14/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.12.14/x64' ) ;
extractTarSpy . mockImplementation ( async ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( logSpy ) . toHaveBeenCalledWith ( 'Setup go version spec 1.12.14' ) ;
expect ( findSpy ) . toHaveBeenCalled ( ) ;
expect ( logSpy ) . toHaveBeenCalledWith ( 'Attempting to download 1.12.14...' ) ;
@ -489,7 +489,7 @@ describe('setup-go', () => {
} ) ;
it ( 'reports a failed download' , async ( ) = > {
le t errMsg = 'unhandled download message' ;
cons t errMsg = 'unhandled download message' ;
os . platform = 'linux' ;
os . arch = 'x64' ;
@ -510,7 +510,7 @@ describe('setup-go', () => {
whichSpy . mockImplementation ( async ( ) = > {
return '' ;
} ) ;
le t added = await main . addBinToPath ( ) ;
cons t added = await main . addBinToPath ( ) ;
expect ( added ) . toBeFalsy ( ) ;
} ) ;
@ -528,8 +528,8 @@ describe('setup-go', () => {
return false ;
} ) ;
le t added = await main . addBinToPath ( ) ;
expect ( added ) . toBeTruthy ;
cons t added = await main . addBinToPath ( ) ;
expect ( added ) . toBeTruthy () ;
} ) ;
interface Annotation {
@ -543,9 +543,9 @@ describe('setup-go', () => {
// problem matcher regex pattern tests
function testMatch ( line : string ) : Annotation {
le t annotation = < Annotation > { } ;
cons t annotation = < Annotation > { } ;
le t match = matcherRegExp . exec ( line ) ;
cons t match = matcherRegExp . exec ( line ) ;
if ( match ) {
annotation . line = parseInt ( match [ matcherPattern . line ] , 10 ) ;
annotation . column = parseInt ( match [ matcherPattern . column ] , 10 ) ;
@ -557,8 +557,8 @@ describe('setup-go', () => {
}
it ( 'matches on relative unix path' , async ( ) = > {
le t line = './main.go:13:2: undefined: fmt.Printl' ;
le t annotation = testMatch ( line ) ;
cons t line = './main.go:13:2: undefined: fmt.Printl' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 13 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -567,8 +567,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on unix path up the tree' , async ( ) = > {
le t line = '../main.go:13:2: undefined: fmt.Printl' ;
le t annotation = testMatch ( line ) ;
cons t line = '../main.go:13:2: undefined: fmt.Printl' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 13 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -577,8 +577,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on unix path down the tree' , async ( ) = > {
le t line = 'foo/main.go:13:2: undefined: fmt.Printl' ;
le t annotation = testMatch ( line ) ;
cons t line = 'foo/main.go:13:2: undefined: fmt.Printl' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 13 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -587,8 +587,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on rooted unix path' , async ( ) = > {
le t line = '/assert.go:4:1: missing return at end of function' ;
le t annotation = testMatch ( line ) ;
cons t line = '/assert.go:4:1: missing return at end of function' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 4 ) ;
expect ( annotation . column ) . toBe ( 1 ) ;
@ -597,8 +597,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on unix path with spaces' , async ( ) = > {
le t line = ' ./assert.go:5:2: missing return at end of function ' ;
le t annotation = testMatch ( line ) ;
cons t line = ' ./assert.go:5:2: missing return at end of function ' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 5 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -607,8 +607,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on unix path with tabs' , async ( ) = > {
le t line = '\t./assert.go:5:2: missing return at end of function ' ;
le t annotation = testMatch ( line ) ;
cons t line = '\t./assert.go:5:2: missing return at end of function ' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 5 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -617,8 +617,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on relative windows path' , async ( ) = > {
le t line = '.\\main.go:13:2: undefined: fmt.Printl' ;
le t annotation = testMatch ( line ) ;
cons t line = '.\\main.go:13:2: undefined: fmt.Printl' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 13 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -627,8 +627,8 @@ describe('setup-go', () => {
} ) ;
it ( 'matches on windows path up the tree' , async ( ) = > {
le t line = '..\\main.go:13:2: undefined: fmt.Printl' ;
le t annotation = testMatch ( line ) ;
cons t line = '..\\main.go:13:2: undefined: fmt.Printl' ;
cons t annotation = testMatch ( line ) ;
expect ( annotation ) . toBeDefined ( ) ;
expect ( annotation . line ) . toBe ( 13 ) ;
expect ( annotation . column ) . toBe ( 2 ) ;
@ -730,7 +730,7 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t versionSpec = '1.13' ;
cons t versionSpec = '1.13' ;
inputs [ 'go-version' ] = versionSpec ;
inputs [ 'check-latest' ] = true ;
@ -741,13 +741,13 @@ describe('setup-go', () => {
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.13.7/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.7/x64' ) ;
extractTarSpy . mockImplementation ( async ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( dlSpy ) . toHaveBeenCalled ( ) ;
expect ( extractTarSpy ) . toHaveBeenCalled ( ) ;
@ -767,7 +767,7 @@ describe('setup-go', () => {
os . platform = 'linux' ;
os . arch = 'x64' ;
le t versionSpec = '1.13' ;
cons t versionSpec = '1.13' ;
process . env [ 'GITHUB_PATH' ] = '' ;
@ -784,13 +784,13 @@ describe('setup-go', () => {
getAllVersionsSpy . mockImplementationOnce ( ( ) = > undefined ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( '/cache/go/1.13.7/x64' ) ;
cons t toolPath = path . normalize ( '/cache/go/1.13.7/x64' ) ;
extractTarSpy . mockImplementation ( async ( ) = > '/some/other/temp/path' ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
le t expPath = path . join ( toolPath , 'bin' ) ;
cons t expPath = path . join ( toolPath , 'bin' ) ;
expect ( logSpy ) . toHaveBeenCalledWith (
` Failed to resolve version ${ versionSpec } from manifest `
@ -910,7 +910,7 @@ use .
inputs [ 'go-version' ] = version ;
inputs [ 'architecture' ] = arch ;
le t expectedUrl =
cons t expectedUrl =
platform === 'win32'
? ` https://github.com/actions/go-versions/releases/download/ ${ version } /go- ${ version } - ${ platform } - ${ arch } . ${ fileExtension } `
: ` https://storage.googleapis.com/golang/go ${ version } . ${ osSpec } - ${ arch } . ${ fileExtension } ` ;
@ -919,7 +919,7 @@ use .
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( ` /cache/go/ ${ version } / ${ arch } ` ) ;
cons t toolPath = path . normalize ( ` /cache/go/ ${ version } / ${ arch } ` ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;
@ -944,7 +944,7 @@ use .
findSpy . mockImplementation ( ( ) = > '' ) ;
dlSpy . mockImplementation ( async ( ) = > '/some/temp/path' ) ;
le t toolPath = path . normalize ( ` /cache/go/ ${ alias } / ${ arch } ` ) ;
cons t toolPath = path . normalize ( ` /cache/go/ ${ alias } / ${ arch } ` ) ;
cacheSpy . mockImplementation ( async ( ) = > toolPath ) ;
await main . run ( ) ;