mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-27 05:35:53 +00:00
clean and persist the git db/checkouts
This commit is contained in:
parent
e8e3c57b3b
commit
b740ae5d3a
4 changed files with 178 additions and 60 deletions
9
dist/restore/index.js
vendored
9
dist/restore/index.js
vendored
|
@ -54618,7 +54618,7 @@ const home = external_os_default().homedir();
|
|||
const paths = {
|
||||
index: external_path_default().join(home, ".cargo/registry/index"),
|
||||
cache: external_path_default().join(home, ".cargo/registry/cache"),
|
||||
git: external_path_default().join(home, ".cargo/git/db"),
|
||||
git: external_path_default().join(home, ".cargo/git"),
|
||||
target: "target",
|
||||
};
|
||||
const RefKey = "GITHUB_REF";
|
||||
|
@ -54642,12 +54642,7 @@ async function getCacheConfig() {
|
|||
}
|
||||
key += await getRustKey();
|
||||
return {
|
||||
paths: [
|
||||
paths.index,
|
||||
paths.cache,
|
||||
// TODO: paths.git,
|
||||
paths.target,
|
||||
],
|
||||
paths: [paths.index, paths.cache, paths.git, paths.target],
|
||||
key: `${key}-${lockHash}`,
|
||||
restoreKeys: [key],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue