mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
add gobin to path regardless of whether a specific version of go is installed
This commit is contained in:
parent
37335c7bb2
commit
7267bd9425
2 changed files with 7 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -1506,10 +1506,11 @@ function run() {
|
||||||
core.exportVariable('GOROOT', installDir);
|
core.exportVariable('GOROOT', installDir);
|
||||||
core.addPath(path_1.default.join(installDir, 'bin'));
|
core.addPath(path_1.default.join(installDir, 'bin'));
|
||||||
core.info('Added go to the path');
|
core.info('Added go to the path');
|
||||||
let added = yield addBinToPath();
|
|
||||||
core.debug(`add bin ${added}`);
|
|
||||||
core.info(`Successfully setup go version ${versionSpec}`);
|
core.info(`Successfully setup go version ${versionSpec}`);
|
||||||
}
|
}
|
||||||
|
// add gobin to path
|
||||||
|
let added = yield addBinToPath();
|
||||||
|
core.debug(`add bin ${added}`);
|
||||||
// add problem matchers
|
// add problem matchers
|
||||||
const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json');
|
const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json');
|
||||||
core.info(`##[add-matcher]${matchersPath}`);
|
core.info(`##[add-matcher]${matchersPath}`);
|
||||||
|
|
|
@ -30,11 +30,13 @@ export async function run() {
|
||||||
core.addPath(path.join(installDir, 'bin'));
|
core.addPath(path.join(installDir, 'bin'));
|
||||||
core.info('Added go to the path');
|
core.info('Added go to the path');
|
||||||
|
|
||||||
let added = await addBinToPath();
|
|
||||||
core.debug(`add bin ${added}`);
|
|
||||||
core.info(`Successfully setup go version ${versionSpec}`);
|
core.info(`Successfully setup go version ${versionSpec}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add gobin to path
|
||||||
|
let added = await addBinToPath();
|
||||||
|
core.debug(`add bin ${added}`);
|
||||||
|
|
||||||
// add problem matchers
|
// add problem matchers
|
||||||
const matchersPath = path.join(__dirname, '..', 'matchers.json');
|
const matchersPath = path.join(__dirname, '..', 'matchers.json');
|
||||||
core.info(`##[add-matcher]${matchersPath}`);
|
core.info(`##[add-matcher]${matchersPath}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue