File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1331,14 +1331,15 @@ function addBinToPath() {
13311331 return __awaiter ( this , void 0 , void 0 , function * ( ) {
13321332 let added = false ;
13331333 let g = yield io . which ( 'go' ) ;
1334+ core . debug ( `which go :${ g } ;` ) ;
13341335 if ( ! g ) {
13351336 core . debug ( 'go not in the path' ) ;
13361337 return added ;
13371338 }
13381339 let buf = cp . execSync ( 'go env GOPATH' ) ;
13391340 if ( buf ) {
13401341 let gp = buf . toString ( ) . trim ( ) ;
1341- core . debug ( `go env GOPATH: ${ gp } ` ) ;
1342+ core . debug ( `go env GOPATH : ${ gp } : ` ) ;
13421343 if ( fs . existsSync ( gp ) ) {
13431344 let bp = path . join ( gp , 'bin' ) ;
13441345 if ( ! fs . existsSync ( bp ) ) {
@@ -1348,6 +1349,9 @@ function addBinToPath() {
13481349 core . addPath ( bp ) ;
13491350 added = true ;
13501351 }
1352+ else {
1353+ core . debug ( 'go env GOPATH does not exist' ) ;
1354+ }
13511355 }
13521356 return added ;
13531357 } ) ;
Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ async function addBinToPath(): Promise<boolean> {
8282
8383 core . addPath ( bp ) ;
8484 added = true ;
85- }
86- else {
85+ } else {
8786 core . debug ( 'go env GOPATH does not exist' ) ;
8887 }
8988 }
You can’t perform that action at this time.
0 commit comments