fix: log rustup toolchain list failure as info instead of warning (#393) (#394)

Do not show a warning when rustup is not installed.
This commit is contained in:
Simon Scatton
2026-10-20 15:35:22 +02:00
committed by GitHub
parent f0d9c38877
commit 0e361f3528
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { v as commonjsGlobal, x as requireTunnel, y as getDefaultExportFromCjs, z as getAugmentedNamespace } from './cleanup-BPghO_DY.js';
import { v as commonjsGlobal, x as requireTunnel, y as getDefaultExportFromCjs, z as getAugmentedNamespace } from './cleanup-CXZWJx5g.js';
import os__default from 'os';
import crypto__default from 'crypto';
import fs__default from 'fs';
+1 -1
View File
@@ -1,4 +1,4 @@
import { f as debug, m as mkdirP, n as create, l as exec, w as which, o as warning, i as info, H as HttpCodes, p as HttpClientError, q as HttpClient, t as isDebug, u as setSecret, B as BearerCredentialHandler, e as error } from './cleanup-BPghO_DY.js';
import { f as debug, m as mkdirP, n as create, l as exec, w as which, o as warning, i as info, H as HttpCodes, p as HttpClientError, q as HttpClient, t as isDebug, u as setSecret, B as BearerCredentialHandler, e as error } from './cleanup-CXZWJx5g.js';
import * as path from 'path';
import * as crypto from 'crypto';
import * as fs from 'fs';
+3 -3
View File
@@ -34434,10 +34434,10 @@ async function getCacheProvider() {
let cache;
switch (cacheProvider) {
case "github":
cache = await import('./cache-CtywT2QH.js');
cache = await import('./cache-DrBcWZx-.js');
break;
case "warpbuild":
cache = await import('./cache-DZhpLd9j.js').then(function (n) { return n.c; });
cache = await import('./cache-C3QW-iHv.js').then(function (n) { return n.c; });
break;
default:
throw new Error(`The \`cache-provider\` \`${cacheProvider}\` is not valid.`);
@@ -34817,7 +34817,7 @@ async function getRustVersions(cmdFormat) {
return await getCmdOutput(cmdFormat, "rustup toolchain list --quiet");
}
catch (e) {
warning(`Error running rustup toolchain list, falling back to default toolchain only: ${e}`);
info(`Error running rustup toolchain list, falling back to default toolchain only: ${e}`);
return undefined;
}
})();
+1 -1
View File
@@ -1,4 +1,4 @@
import { e as error, g as getCacheProvider, a as getInput, b as exportVariable, C as CacheConfig, i as info, c as cleanTargetDir, r as reportError, s as setOutput } from './cleanup-BPghO_DY.js';
import { e as error, g as getCacheProvider, a as getInput, b as exportVariable, C as CacheConfig, i as info, c as cleanTargetDir, r as reportError, s as setOutput } from './cleanup-CXZWJx5g.js';
import 'os';
import 'crypto';
import 'fs';
+1 -1
View File
@@ -1,4 +1,4 @@
import { e as error, g as getCacheProvider, a as getInput, d as isCacheUpToDate, i as info, C as CacheConfig, c as cleanTargetDir, f as debug, h as cleanRegistry, j as cleanBin, k as cleanGit, r as reportError, l as exec } from './cleanup-BPghO_DY.js';
import { e as error, g as getCacheProvider, a as getInput, d as isCacheUpToDate, i as info, C as CacheConfig, c as cleanTargetDir, f as debug, h as cleanRegistry, j as cleanBin, k as cleanGit, r as reportError, l as exec } from './cleanup-CXZWJx5g.js';
import 'os';
import 'crypto';
import 'fs';
+1 -1
View File
@@ -396,7 +396,7 @@ async function getRustVersions(cmdFormat: string): Promise<Array<string>> {
try {
return await getCmdOutput(cmdFormat, "rustup toolchain list --quiet");
} catch (e) {
core.warning(`Error running rustup toolchain list, falling back to default toolchain only: ${e}`);
core.info(`Error running rustup toolchain list, falling back to default toolchain only: ${e}`);
return undefined;
}
})();