|
|
@ -2086,7 +2086,7 @@ function run() {
|
|
|
|
const version = installer.makeSemver(versionSpec);
|
|
|
|
const version = installer.makeSemver(versionSpec);
|
|
|
|
// Go versions less than 1.9 require GOROOT to be set
|
|
|
|
// Go versions less than 1.9 require GOROOT to be set
|
|
|
|
if (semver.lt(version, '1.9.0')) {
|
|
|
|
if (semver.lt(version, '1.9.0')) {
|
|
|
|
core.info("Setting GOROOT for Go version < 1.9");
|
|
|
|
core.info('Setting GOROOT for Go version < 1.9');
|
|
|
|
core.exportVariable('GOROOT', installDir);
|
|
|
|
core.exportVariable('GOROOT', installDir);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let added = yield addBinToPath();
|
|
|
|
let added = yield addBinToPath();
|
|
|
|