Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan MacFarlane committed Mar 26, 2020
1 parent 1fdcb9b commit 75899f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ export async function run() {
function addBinToPath(): boolean {
let added = false;
let buf = cp.execSync('go env GOPATH');

if (buf) {
let d = buf.toString().trim();
core.debug(`go env GOPATH: ${d}`);
let bp = path.join(d, 'bin');

if (fs.existsSync(bp)) {
core.debug(`${bp} exists`);
core.addPath(bp);
added = true;
}
Expand Down

0 comments on commit 75899f8

Please sign in to comment.