3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2026-08-08 12:31:14 +00:00
cache/src
Jasperhino be02de94c3 gcsCache: return matched cache key, not gcs path
@actions/cache restoreCache contract returns the matched key (primary or
restore) so callers can compare to primaryKey for cache-hit. Our wrapper
was returning the full gcs object path, so restoreImpl.ts always set
cache-hit=false → every job ran pnpm install --frozen-lockfile on top of
a restored node_modules, burning ~34s per job for nothing.

findFileOnGCS now returns { key, path }; outer wrapper returns the key.
2026-04-24 12:55:06 +02:00
..
utils gcsCache: return matched cache key, not gcs path 2026-04-24 12:55:06 +02:00
constants.ts Add GCS cache backend with GitHub fallback 2026-04-23 12:48:47 +02:00
restore.ts Consume latest toolkit and fix dangling promise bug (#1217) 2023-08-09 15:36:51 +01:00
restoreImpl.ts Add GCS cache backend with GitHub fallback 2026-04-23 12:48:47 +02:00
restoreOnly.ts Consume latest toolkit and fix dangling promise bug (#1217) 2023-08-09 15:36:51 +01:00
save.ts Apply workaround for earlyExit 2024-01-10 15:36:58 +00:00
saveImpl.ts Add GCS cache backend with GitHub fallback 2026-04-23 12:48:47 +02:00
saveOnly.ts Fix format 2024-01-10 15:40:24 +00:00
stateProvider.ts GA for granular cache (#1035) 2022-12-21 19:38:44 +05:30