Skip to content

Commit cec6ece

Browse files
output version of go it resolved to
1 parent e36ce1d commit cec6ece

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,10 @@ function run() {
13181318
// add problem matchers
13191319
const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json');
13201320
console.log(`##[add-matcher]${matchersPath}`);
1321+
// output the version actually being used
1322+
let goPath = yield io.which('go');
1323+
let goVersion = child_process_1.default.execSync(`${goPath} version`);
1324+
console.log('Using go version ');
13211325
}
13221326
catch (error) {
13231327
core.setFailed(error.message);

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ export async function run() {
5050
// add problem matchers
5151
const matchersPath = path.join(__dirname, '..', 'matchers.json');
5252
console.log(`##[add-matcher]${matchersPath}`);
53+
54+
// output the version actually being used
55+
let goPath = await io.which('go');
56+
let goVersion = cp.execSync(`${goPath} version`);
57+
58+
console.log('Using go version ');
5359
} catch (error) {
5460
core.setFailed(error.message);
5561
}

0 commit comments

Comments
 (0)