|
|
@ -110,10 +110,10 @@ function setGoEnvironmentVariables(goRoot) {
|
|
|
|
const goPath = process.env['GOPATH'] || '';
|
|
|
|
const goPath = process.env['GOPATH'] || '';
|
|
|
|
const goBin = process.env['GOBIN'] || '';
|
|
|
|
const goBin = process.env['GOBIN'] || '';
|
|
|
|
// set GOPATH and GOBIN as user value
|
|
|
|
// set GOPATH and GOBIN as user value
|
|
|
|
if (!util.isNullOrUndefined(goPath)) {
|
|
|
|
if (goPath) {
|
|
|
|
core.exportVariable('GOPATH', goPath);
|
|
|
|
core.exportVariable('GOPATH', goPath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!util.isNullOrUndefined(goBin)) {
|
|
|
|
if (goBin) {
|
|
|
|
core.exportVariable('GOBIN', goBin);
|
|
|
|
core.exportVariable('GOBIN', goBin);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|