1
0
Fork 0
mirror of https://github.com/actions/setup-go synced 2024-12-22 14:22:41 +00:00

add debug

This commit is contained in:
Bryan MacFarlane 2020-03-26 12:17:32 -04:00
parent 1fdcb9b160
commit 75899f8cdf

View file

@ -62,10 +62,14 @@ export async function run() {
function addBinToPath(): boolean { function addBinToPath(): boolean {
let added = false; let added = false;
let buf = cp.execSync('go env GOPATH'); let buf = cp.execSync('go env GOPATH');
if (buf) { if (buf) {
let d = buf.toString().trim(); let d = buf.toString().trim();
core.debug(`go env GOPATH: ${d}`);
let bp = path.join(d, 'bin'); let bp = path.join(d, 'bin');
if (fs.existsSync(bp)) { if (fs.existsSync(bp)) {
core.debug(`${bp} exists`);
core.addPath(bp); core.addPath(bp);
added = true; added = true;
} }