mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-30 23:06:22 +00:00 
			
		
		
		
	CR feedback
This commit is contained in:
		| @@ -84,7 +84,10 @@ export async function findMatch( | ||||
|     } | ||||
|  | ||||
|     debug(`check ${version} satisfies ${versionSpec}`); | ||||
|     if (semver.satisfies(version, versionSpec) && candidate.stable == stable) { | ||||
|     if ( | ||||
|       semver.satisfies(version, versionSpec) && | ||||
|       (!stable || candidate.stable === stable) | ||||
|     ) { | ||||
|       goFile = candidate.files.find(file => { | ||||
|         debug(`${file.arch}===${archFilter} && ${file.os}===${platFilter}`); | ||||
|         return file.arch === archFilter && file.os === platFilter; | ||||
|   | ||||
| @@ -13,7 +13,7 @@ export async function run() { | ||||
|  | ||||
|     // stable will be true unless false is the exact input | ||||
|     // since getting unstable versions should be explicit | ||||
|     let stable = Boolean(core.getInput('stable') || 'true'); | ||||
|     let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE'; | ||||
|  | ||||
|     console.log( | ||||
|       `Setup go ${stable ? 'stable' : ''} version spec ${versionSpec}` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user