add go bin even if go-version is empty

This commit is contained in:
Dmitry Shibanov 2023-03-08 13:36:44 +01:00
parent 7406d654ad
commit c8bd090a3e
2 changed files with 7 additions and 7 deletions

View file

@ -50,12 +50,12 @@ export async function run() {
core.info('Setting GOROOT for Go version < 1.9');
core.exportVariable('GOROOT', installDir);
}
const added = await addBinToPath();
core.debug(`add bin ${added}`);
core.info(`Successfully set up Go version ${versionSpec}`);
}
const added = await addBinToPath();
core.debug(`add bin ${added}`);
core.info(`Successfully set up Go version ${versionSpec}`);
const goPath = await io.which('go');
const goVersion = (cp.execSync(`${goPath} version`) || '').toString();