mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-26 21:35:35 +00:00
fix: cache restore failures (#136)
Fix cache restore failures to to upstream bug. Fixes #119
This commit is contained in:
parent
127a0e9568
commit
5e9fae966f
4 changed files with 16 additions and 4 deletions
5
dist/save/index.js
vendored
5
dist/save/index.js
vendored
|
@ -60434,7 +60434,10 @@ async function run() {
|
|||
core.info(`[warning] ${e.stack}`);
|
||||
}
|
||||
core.info(`... Saving cache ...`);
|
||||
await cache.saveCache(config.cachePaths, config.cacheKey);
|
||||
// Pass a copy of cachePaths to avoid mutating the original array as reported by:
|
||||
// https://github.com/actions/toolkit/pull/1378
|
||||
// TODO: remove this once the underlying bug is fixed.
|
||||
await cache.saveCache(config.cachePaths.slice(), config.cacheKey);
|
||||
}
|
||||
catch (e) {
|
||||
core.info(`[warning] ${e.stack}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue