3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-05 21:00:27 +00:00

fix pretty printing and selftest

This commit is contained in:
Arpad Borsos 2022-07-09 15:39:43 +02:00
parent cb43a50800
commit 36af5cb1ae
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
5 changed files with 15 additions and 9 deletions

View file

@ -61624,7 +61624,8 @@ async function getCmdOutput(cmd, args = [], options = {}) {
});
}
catch (e) {
lib_core.error(stderr);
lib_core.info(`[warning] Command failed: ${cmd} ${args.join(" ")}`);
lib_core.info(`[warning] ${stderr}`);
throw e;
}
return stdout;
@ -61736,7 +61737,7 @@ class CacheConfig {
self.keyRust = keyRust;
// these prefixes should cover most of the compiler / rust / cargo keys
const envPrefixes = ["CARGO", "CC", "CXX", "CMAKE", "RUST"];
envPrefixes.push(...lib_core.getInput("envVars").split(/\s+/));
envPrefixes.push(...lib_core.getInput("envVars").split(/\s+/).filter(Boolean));
// sort the available env vars so we have a more stable hash
const keyEnvs = [];
const envKeys = Object.keys(process.env);