mirror of
https://github.com/actions/setup-go.git
synced 2025-06-19 20:07:12 +02:00
Fix condition for old go versions
This commit is contained in:
@ -69,7 +69,7 @@ export async function addBinToPath(): Promise<boolean> {
|
||||
}
|
||||
|
||||
let buf = cp.execSync('go env GOPATH');
|
||||
if (buf) {
|
||||
if (buf.length > 1) {
|
||||
let gp = buf.toString().trim();
|
||||
core.debug(`go env GOPATH :${gp}:`);
|
||||
if (!fs.existsSync(gp)) {
|
||||
|
Reference in New Issue
Block a user