diff --git a/dist/index.js b/dist/index.js index 7b347bd..8d1ce55 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); diff --git a/src/main.ts b/src/main.ts index 9948f98..f90b834 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); }