File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export async function run() {
6363async function addBinToPath ( ) : Promise < boolean > {
6464 let added = false ;
6565 let g = await io . which ( 'go' ) ;
66+ core . debug ( `which go :${ g } ;` ) ;
6667 if ( ! g ) {
6768 core . debug ( 'go not in the path' ) ;
6869 return added ;
@@ -71,7 +72,7 @@ async function addBinToPath(): Promise<boolean> {
7172 let buf = cp . execSync ( 'go env GOPATH' ) ;
7273 if ( buf ) {
7374 let gp = buf . toString ( ) . trim ( ) ;
74- core . debug ( `go env GOPATH: ${ gp } ` ) ;
75+ core . debug ( `go env GOPATH : ${ gp } : ` ) ;
7576 if ( fs . existsSync ( gp ) ) {
7677 let bp = path . join ( gp , 'bin' ) ;
7778 if ( ! fs . existsSync ( bp ) ) {
@@ -82,6 +83,9 @@ async function addBinToPath(): Promise<boolean> {
8283 core . addPath ( bp ) ;
8384 added = true ;
8485 }
86+ else {
87+ core . debug ( 'go env GOPATH does not exist' ) ;
88+ }
8589 }
8690 return added ;
8791}
You can’t perform that action at this time.
0 commit comments