@@ -1290,14 +1290,18 @@ function run() {
12901290 // stable will be true unless false is the exact input
12911291 // since getting unstable versions should be explicit
12921292 let stable = Boolean ( core . getInput ( 'stable' ) || 'true' ) ;
1293+ console . log ( `Setup go ${ stable ? 'stable' : '' } version spec ${ versionSpec } ` ) ;
12931294 if ( versionSpec ) {
12941295 let installDir = tc . find ( 'go' , versionSpec ) ;
12951296 if ( ! installDir ) {
1297+ console . log ( `A version satisfying ${ versionSpec } not found locally, attempting to download ...` ) ;
12961298 installDir = yield installer . downloadGo ( versionSpec , stable ) ;
1299+ console . log ( 'installed' ) ;
12971300 }
12981301 if ( installDir ) {
12991302 core . exportVariable ( 'GOROOT' , installDir ) ;
13001303 core . addPath ( path . join ( installDir , 'bin' ) ) ;
1304+ console . log ( 'added to the path' ) ;
13011305 }
13021306 else {
13031307 throw new Error ( `Could not find a version that satisfied version spec: ${ versionSpec } ` ) ;
@@ -4586,9 +4590,11 @@ function downloadGo(versionSpec, stable) {
45864590 // download
45874591 core_1 . debug ( `match ${ match . version } ` ) ;
45884592 let downloadUrl = `https://storage.googleapis.com/golang/${ match . files [ 0 ] . filename } ` ;
4593+ console . log ( `Downloading from ${ downloadUrl } ` ) ;
45894594 let downloadPath = yield tc . downloadTool ( downloadUrl ) ;
45904595 core_1 . debug ( `downloaded to ${ downloadPath } ` ) ;
45914596 // extract
4597+ console . log ( 'Extracting ...' ) ;
45924598 let extPath = sys . getPlatform ( ) == 'windows'
45934599 ? yield tc . extractZip ( downloadPath )
45944600 : yield tc . extractTar ( downloadPath ) ;
0 commit comments