3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2026-08-10 05:21:12 +00:00
cache/dist/save
Jasperhino c0d02c4c23 Fix restore-keys to prefix-match on GCS like actions/cache
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
2026-07-24 14:53:05 +02:00
..
index.js Fix restore-keys to prefix-match on GCS like actions/cache 2026-07-24 14:53:05 +02:00