add gobin to path regardless of whether a specific version of go is installed

This commit is contained in:
Leigh McCulloch 2020-12-04 00:06:24 -08:00
parent 37335c7bb2
commit 7267bd9425
No known key found for this signature in database
GPG key ID: 02EA740790312BC4
2 changed files with 7 additions and 4 deletions

5
dist/index.js vendored
View file

@ -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}`);

View file

@ -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}`);