mirror of
https://github.com/actions/setup-go.git
synced 2024-12-29 06:04:46 -05:00
casing
This commit is contained in:
parent
a6a701e18e
commit
7ea80d8e5f
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -1296,12 +1296,12 @@ function run() {
|
||||||
if (!installDir) {
|
if (!installDir) {
|
||||||
console.log(`A version satisfying ${versionSpec} not found locally, attempting to download ...`);
|
console.log(`A version satisfying ${versionSpec} not found locally, attempting to download ...`);
|
||||||
installDir = yield installer.downloadGo(versionSpec, stable);
|
installDir = yield installer.downloadGo(versionSpec, stable);
|
||||||
console.log('installed');
|
console.log('Installed');
|
||||||
}
|
}
|
||||||
if (installDir) {
|
if (installDir) {
|
||||||
core.exportVariable('GOROOT', installDir);
|
core.exportVariable('GOROOT', installDir);
|
||||||
core.addPath(path.join(installDir, 'bin'));
|
core.addPath(path.join(installDir, 'bin'));
|
||||||
console.log('added to the path');
|
console.log('Added go to the path');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Error(`Could not find a version that satisfied version spec: ${versionSpec}`);
|
throw new Error(`Could not find a version that satisfied version spec: ${versionSpec}`);
|
||||||
|
|
|
@ -27,13 +27,13 @@ export async function run() {
|
||||||
`A version satisfying ${versionSpec} not found locally, attempting to download ...`
|
`A version satisfying ${versionSpec} not found locally, attempting to download ...`
|
||||||
);
|
);
|
||||||
installDir = await installer.downloadGo(versionSpec, stable);
|
installDir = await installer.downloadGo(versionSpec, stable);
|
||||||
console.log('installed');
|
console.log('Installed');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (installDir) {
|
if (installDir) {
|
||||||
core.exportVariable('GOROOT', installDir);
|
core.exportVariable('GOROOT', installDir);
|
||||||
core.addPath(path.join(installDir, 'bin'));
|
core.addPath(path.join(installDir, 'bin'));
|
||||||
console.log('added to the path');
|
console.log('Added go to the path');
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Could not find a version that satisfied version spec: ${versionSpec}`
|
`Could not find a version that satisfied version spec: ${versionSpec}`
|
||||||
|
|
Loading…
Reference in a new issue