!drop build so I can test the action

This commit is contained in:
Matthew Hughes 2024-02-08 10:46:30 +00:00
parent c183053c42
commit a02bf28b8a

9
dist/setup/index.js vendored
View file

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