mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
!drop build so I can test the action
This commit is contained in:
parent
c183053c42
commit
a02bf28b8a
1 changed files with 7 additions and 2 deletions
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
|
@ -61817,7 +61817,10 @@ function run() {
|
||||||
const added = yield addBinToPath();
|
const added = yield addBinToPath();
|
||||||
core.debug(`add bin ${added}`);
|
core.debug(`add bin ${added}`);
|
||||||
const goPath = yield io.which('go');
|
const goPath = yield io.which('go');
|
||||||
const goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
|
// run `go version` with the bundled Go toolchain to avoid potentially
|
||||||
|
// downloading one into the cache
|
||||||
|
const goVersion = (child_process_1.default.execSync(`${goPath} version`) || '',
|
||||||
|
{ env: Object.assign(Object.assign({}, process.env), { GOTOOLCHAIN: 'local' }) }).toString();
|
||||||
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
||||||
const packageManager = 'default';
|
const packageManager = 'default';
|
||||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||||
|
@ -61854,7 +61857,9 @@ function addBinToPath() {
|
||||||
core.debug('go not in the path');
|
core.debug('go not in the path');
|
||||||
return added;
|
return added;
|
||||||
}
|
}
|
||||||
const buf = child_process_1.default.execSync('go env GOPATH');
|
const buf = child_process_1.default.execSync('go env GOPATH', {
|
||||||
|
env: Object.assign(Object.assign({}, process.env), { GOTOOLCHAIN: 'local' })
|
||||||
|
});
|
||||||
if (buf.length > 1) {
|
if (buf.length > 1) {
|
||||||
const gp = buf.toString().trim();
|
const gp = buf.toString().trim();
|
||||||
core.debug(`go env GOPATH :${gp}:`);
|
core.debug(`go env GOPATH :${gp}:`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue