mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-30 23:06:22 +00:00 
			
		
		
		
	bugs
This commit is contained in:
		| @@ -15,7 +15,7 @@ export async function downloadGo( | ||||
|  | ||||
|     if (match) { | ||||
|       // download | ||||
|       let downloadUrl: string = `https://storage.googleapis.com/golang/${match.files[0]}`; | ||||
|       let downloadUrl: string = `https://storage.googleapis.com/golang/${match.files[0].filename}`; | ||||
|       let downloadPath: string = await tc.downloadTool(downloadUrl); | ||||
|  | ||||
|       // extract | ||||
| @@ -80,7 +80,6 @@ export async function findMatch( | ||||
|       version = version + '.0'; | ||||
|     } | ||||
|  | ||||
|     //console.log(version, versionSpec); | ||||
|     if (semver.satisfies(version, versionSpec) && candidate.stable == stable) { | ||||
|       goFile = candidate.files.find(file => { | ||||
|         return file.arch === archFilter && file.os === platFilter; | ||||
|   | ||||
| @@ -10,8 +10,10 @@ export async function run() { | ||||
|     // If not supplied then problem matchers will still be setup.  Useful for self-hosted. | ||||
|     // | ||||
|     let versionSpec = core.getInput('go-version'); | ||||
|     let stable: boolean = | ||||
|       (core.getInput('stable') || '').toUpperCase() == 'TRUE'; | ||||
|      | ||||
|     // stable will be true unless false is the exact input | ||||
|     // since getting unstable versions should be explicit | ||||
|     let stable = Boolean(core.getInput('stable') || 'true'); | ||||
|  | ||||
|     if (versionSpec) { | ||||
|       let installDir: string | undefined = tc.find('go', versionSpec); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user