We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a4352b commit ad70befCopy full SHA for ad70bef
dist/index.js
@@ -2122,7 +2122,7 @@ function addBinToPath() {
2122
return added;
2123
}
2124
let buf = child_process_1.default.execSync('go env GOPATH');
2125
- if (buf) {
+ if (buf.length > 1) {
2126
let gp = buf.toString().trim();
2127
core.debug(`go env GOPATH :${gp}:`);
2128
if (!fs_1.default.existsSync(gp)) {
src/main.ts
@@ -69,7 +69,7 @@ export async function addBinToPath(): Promise<boolean> {
69
70
71
let buf = cp.execSync('go env GOPATH');
72
73
74
75
if (!fs.existsSync(gp)) {
0 commit comments