3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-29 14:45:53 +00:00

Additionally key on Rust toolchain file(s) if present

This commit is contained in:
Caleb Maclennan 2021-03-15 12:03:26 +03:00 committed by Arpad Borsos
parent a9bca6b5a6
commit da42bbe56d
2 changed files with 3 additions and 2 deletions

View file

@ -136,7 +136,7 @@ export async function getCmdOutput(
}
async function getLockfileHash(): Promise<string> {
const globber = await glob.create("**/Cargo.toml\n**/Cargo.lock", { followSymbolicLinks: false });
const globber = await glob.create("**/Cargo.toml\n**/Cargo.lock\nrust-toolchain\nrust-toolchain.toml", { followSymbolicLinks: false });
const files = await globber.glob();
files.sort((a, b) => a.localeCompare(b));