Compare commits

..

2 Commits

Author SHA1 Message Date
Marco Ippolito
29b24b6a14
Merge 3859bef1b6 into 40337cb8f7 2025-03-31 14:51:56 +00:00
Marco Ippolito
3859bef1b6
chore: change fallback message with mirrors 2025-03-31 16:51:47 +02:00
2 changed files with 3 additions and 7 deletions

4
dist/setup/index.js vendored
View File

@ -97519,7 +97519,7 @@ class OfficialBuilds extends base_distribution_1.default {
} }
setupNodeJs() { setupNodeJs() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c; var _a, _b;
let manifest; let manifest;
let nodeJsVersions; let nodeJsVersions;
const osArch = this.translateArchToDistUrl(this.nodeInfo.arch); const osArch = this.translateArchToDistUrl(this.nodeInfo.arch);
@ -97577,7 +97577,7 @@ class OfficialBuilds extends base_distribution_1.default {
core.info(err.message); core.info(err.message);
} }
core.debug((_b = err.stack) !== null && _b !== void 0 ? _b : 'empty stack'); core.debug((_b = err.stack) !== null && _b !== void 0 ? _b : 'empty stack');
core.info(`Falling back to download directly from ${(_c = this.nodeInfo.mirror) !== null && _c !== void 0 ? _c : 'Node'}`); core.info('Falling back to download directly from Node');
} }
if (!toolPath) { if (!toolPath) {
toolPath = yield this.downloadDirectlyFromNode(); toolPath = yield this.downloadDirectlyFromNode();

View File

@ -114,11 +114,7 @@ export default class OfficialBuilds extends BaseDistribution {
core.info((err as Error).message); core.info((err as Error).message);
} }
core.debug((err as Error).stack ?? 'empty stack'); core.debug((err as Error).stack ?? 'empty stack');
core.info( core.info('Falling back to download directly from Node');
`Falling back to download directly from ${
this.nodeInfo.mirror ?? 'Node'
}`
);
} }
if (!toolPath) { if (!toolPath) {