mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-26 12:56:24 +00:00 
			
		
		
		
	output version of go it resolved to
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -1318,6 +1318,10 @@ function run() { | ||||
|             // add problem matchers | ||||
|             const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json'); | ||||
|             console.log(`##[add-matcher]${matchersPath}`); | ||||
|             // output the version actually being used | ||||
|             let goPath = yield io.which('go'); | ||||
|             let goVersion = child_process_1.default.execSync(`${goPath} version`); | ||||
|             console.log('Using go version '); | ||||
|         } | ||||
|         catch (error) { | ||||
|             core.setFailed(error.message); | ||||
|   | ||||
| @@ -50,6 +50,12 @@ export async function run() { | ||||
|     // add problem matchers | ||||
|     const matchersPath = path.join(__dirname, '..', 'matchers.json'); | ||||
|     console.log(`##[add-matcher]${matchersPath}`); | ||||
|  | ||||
|     // output the version actually being used | ||||
|     let goPath = await io.which('go'); | ||||
|     let goVersion = cp.execSync(`${goPath} version`); | ||||
|  | ||||
|     console.log('Using go version '); | ||||
|   } catch (error) { | ||||
|     core.setFailed(error.message); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user