File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1308,7 +1308,7 @@ function run() {
13081308 console . log ( 'Added go to the path' ) ;
13091309 // if the global installed bin wasn't added,
13101310 // we can add the bin just installed
1311- if ( ! addBinToPath ) {
1311+ if ( ! addedBin ) {
13121312 addBinToPath ( ) ;
13131313 }
13141314 }
@@ -1331,8 +1331,10 @@ function addBinToPath() {
13311331 let buf = cp . execSync ( 'go env GOPATH' ) ;
13321332 if ( buf ) {
13331333 let d = buf . toString ( ) . trim ( ) ;
1334+ core . debug ( `go env GOPATH: ${ d } ` ) ;
13341335 let bp = path . join ( d , 'bin' ) ;
13351336 if ( fs . existsSync ( bp ) ) {
1337+ core . debug ( `${ bp } exists` ) ;
13361338 core . addPath ( bp ) ;
13371339 added = true ;
13381340 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function addBinToPath(): boolean {
6767 let d = buf . toString ( ) . trim ( ) ;
6868 core . debug ( `go env GOPATH: ${ d } ` ) ;
6969 let bp = path . join ( d , 'bin' ) ;
70-
70+
7171 if ( fs . existsSync ( bp ) ) {
7272 core . debug ( `${ bp } exists` ) ;
7373 core . addPath ( bp ) ;
You can’t perform that action at this time.
0 commit comments