fixup! Avoid Toolchain download before cache download

This commit is contained in:
Matthew Hughes 2024-02-08 09:42:34 +00:00
parent 0815ecbd83
commit c183053c42

View file

@ -108,7 +108,9 @@ export async function addBinToPath(): Promise<boolean> {
return added;
}
const buf = cp.execSync('go env GOPATH');
const buf = cp.execSync('go env GOPATH', {
env: {...process.env, GOTOOLCHAIN: 'local'}
});
if (buf.length > 1) {
const gp = buf.toString().trim();
core.debug(`go env GOPATH :${gp}:`);