@@ -1287,7 +1287,9 @@ function run() {
12871287 // If not supplied then problem matchers will still be setup. Useful for self-hosted.
12881288 //
12891289 let versionSpec = core . getInput ( 'go-version' ) ;
1290- let stable = ( core . getInput ( 'stable' ) || '' ) . toUpperCase ( ) == 'TRUE' ;
1290+ // stable will be true unless false is the exact input
1291+ // since getting unstable versions should be explicit
1292+ let stable = Boolean ( core . getInput ( 'stable' ) || 'true' ) ;
12911293 if ( versionSpec ) {
12921294 let installDir = tc . find ( 'go' , versionSpec ) ;
12931295 if ( ! installDir ) {
@@ -4588,7 +4590,7 @@ function downloadGo(versionSpec, stable) {
45884590 let match = yield findMatch ( versionSpec , stable ) ;
45894591 if ( match ) {
45904592 // download
4591- let downloadUrl = `https://storage.googleapis.com/golang/${ match . files [ 0 ] } ` ;
4593+ let downloadUrl = `https://storage.googleapis.com/golang/${ match . files [ 0 ] . filename } ` ;
45924594 let downloadPath = yield tc . downloadTool ( downloadUrl ) ;
45934595 // extract
45944596 let extPath = sys . getPlatform ( ) == 'windows'
@@ -4628,7 +4630,6 @@ function findMatch(versionSpec, stable) {
46284630 if ( parts . length == 2 ) {
46294631 version = version + '.0' ;
46304632 }
4631- //console.log(version, versionSpec);
46324633 if ( semver . satisfies ( version , versionSpec ) && candidate . stable == stable ) {
46334634 goFile = candidate . files . find ( file => {
46344635 return file . arch === archFilter && file . os === platFilter ;
0 commit comments