This commit is contained in:
MOREL Matthieu 2021-08-26 22:15:58 +02:00
parent e440d68e55
commit c8bb87e036

View file

@ -40,11 +40,12 @@ export async function run() {
core.info(`##[add-matcher]${matchersPath}`); core.info(`##[add-matcher]${matchersPath}`);
// output the version actually being used // output the version actually being used
let goVersion = (cp.execSync(`go version`) || '').toString(); let goPath = await io.which('go');
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
core.info(goVersion); core.info(goVersion);
core.startGroup('go env'); core.startGroup('go env');
let goEnv = (cp.execSync(`go env`) || '').toString(); let goEnv = (cp.execSync(`${goPath} env`) || '').toString();
core.info(goEnv); core.info(goEnv);
core.endGroup(); core.endGroup();
} catch (error) { } catch (error) {