Skip to content

Commit 75899f8

Browse files
add debug
1 parent 1fdcb9b commit 75899f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ export async function run() {
6262
function addBinToPath(): boolean {
6363
let added = false;
6464
let buf = cp.execSync('go env GOPATH');
65+
6566
if (buf) {
6667
let d = buf.toString().trim();
68+
core.debug(`go env GOPATH: ${d}`);
6769
let bp = path.join(d, 'bin');
70+
6871
if (fs.existsSync(bp)) {
72+
core.debug(`${bp} exists`);
6973
core.addPath(bp);
7074
added = true;
7175
}

0 commit comments

Comments
 (0)