diff --git a/dist/setup/index.js b/dist/setup/index.js index e875ffd..ecc68ab 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -61819,8 +61819,9 @@ function run() { const goPath = yield io.which('go'); // run `go version` with the bundled Go toolchain to avoid potentially // downloading one into the cache - const goVersion = (child_process_1.default.execSync(`${goPath} version`) || '', - { env: Object.assign(Object.assign({}, process.env), { GOTOOLCHAIN: 'local' }) }).toString(); + const goVersion = (child_process_1.default.execSync(`${goPath} version`, { + env: Object.assign(Object.assign({}, process.env), { GOTOOLCHAIN: 'local' }) + }) || '').toString(); if (cache && cache_utils_1.isCacheFeatureAvailable()) { const packageManager = 'default'; const cacheDependencyPath = core.getInput('cache-dependency-path');