File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ export class GoVersion {
89
89
const matchesRelease = / g o v e r s i o n g o ( \d .\d + ) .* / . exec ( version ) ;
90
90
const matchesDevel = / g o v e r s i o n d e v e l \+ ( .[ a - z A - Z 0 - 9 ] + ) .* / . exec ( version ) ;
91
91
if ( matchesRelease ) {
92
- const sv = semver . coerce ( matchesRelease [ 0 ] ) ;
92
+ const sv = semver . coerce ( matchesRelease [ 1 ] ) ;
93
93
if ( sv ) {
94
94
this . sv = sv ;
95
95
}
96
96
} else if ( matchesDevel ) {
97
97
this . isDevel = true ;
98
- this . commit = matchesDevel [ 0 ] ;
98
+ this . commit = matchesDevel [ 1 ] ;
99
99
}
100
100
}
101
101
@@ -318,7 +318,7 @@ export async function getGoVersion(): Promise<GoVersion | undefined> {
318
318
if ( cachedGoVersion . isValid ( ) ) {
319
319
return Promise . resolve ( cachedGoVersion ) ;
320
320
}
321
- warn ( `cached Go version (${ cachedGoVersion } ) is invalid, recomputing` ) ;
321
+ warn ( `cached Go version (${ JSON . stringify ( cachedGoVersion ) } ) is invalid, recomputing` ) ;
322
322
}
323
323
try {
324
324
const execFile = util . promisify ( cp . execFile ) ;
You can’t perform that action at this time.
0 commit comments