mirror of
https://code.forgejo.org/actions/cache.git
synced 2026-08-09 21:11:31 +00:00
restore-keys were checked with exact object existence, so prefix fallbacks (e.g. `nx-` matching `nx-<sha>`) never hit on GCS — they only worked via the GitHub cache fallback, which is empty when saves go to GCS. Rolling caches keyed on unique values (sha/run) were therefore never restored. Primary key stays exact-match to keep `cache-hit` semantics. Restore keys now list objects by prefix and pick the newest, mirroring the upstream actions/cache contract. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PkmyS2WfCHHdaQQRpfqvNi |
||
|---|---|---|
| .. | ||
| __fixtures__ | ||
| actionUtils.test.ts | ||
| create-cache-files.sh | ||
| gcsCache.test.ts | ||
| restore.test.ts | ||
| restoreImpl.test.ts | ||
| restoreOnly.test.ts | ||
| save.test.ts | ||
| saveImpl.test.ts | ||
| saveOnly.test.ts | ||
| stateProvider.test.ts | ||
| verify-cache-files.sh | ||