You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add test and documentation for timestamp inclusion in cache checksums
When preserveTimestamps=true, file timestamps are stored in ZIP entry headers,
making them part of the ZIP file's binary content. This ensures that hashing
the ZIP file (for cache keys) includes timestamp information, providing proper
cache invalidation when file timestamps change.
Changes:
- Added testTimestampsAffectFileHash() test verifying that ZIP files with same
content but different timestamps produce different hashes
- Added JavaDoc documentation in CacheUtils.zip() explaining that timestamps
affect cache checksums when preservation is enabled
- Behavior is analogous to Git's inclusion of file mode in tree hashes
This addresses the architectural correctness concern that metadata preserved
during cache restoration should also be part of the cache key computation.
0 commit comments