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
The checksum file was added in #9669 to enable clients to download archives only if they have been changed. However, that is not possible as of now, because zip archives store the modification time of each file. Since Git does not record these timestamps, mtime is set to the current date and time on checkout. Different metadata means different hashes, and so the client downloads the exact same archive once again.
Knowing the checksums, clients can only know if there has been a commit since the last cache update. Even if the commit in question changes the README, for example.
Here is an example. The only change in that commit was the deletion of id_ed25519_tldr_asset_upload.enc, yet all the hashes have changed.
I tried to create a zip without modification times, but I don't think that's possible.
zip has no option to change that.
7z does have it (7z a -mtm=off), but using it on a zip archive produces an error:
System ERROR:
E_INVALIDARG
The best way to fix this would be to not build archives when the files have not been changed , but I have no idea where to even begin. I tried to do that (#11825)
The text was updated successfully, but these errors were encountered:
The checksum file was added in #9669 to enable clients to download archives only if they have been changed. However, that is not possible as of now, because zip archives store the modification time of each file. Since Git does not record these timestamps,
mtime
is set to the current date and time on checkout. Different metadata means different hashes, and so the client downloads the exact same archive once again.Knowing the checksums, clients can only know if there has been a commit since the last cache update. Even if the commit in question changes the README, for example.
Here is an example. The only change in that commit was the deletion of
id_ed25519_tldr_asset_upload.enc
, yet all the hashes have changed.I tried to create a zip without modification times, but I don't think that's possible.
zip
has no option to change that.7z
does have it (7z a -mtm=off
), but using it on a zip archive produces an error:The best way to fix this would be to not build archives when the files have not been changed
, but I have no idea where to even begin.I tried to do that (#11825)The text was updated successfully, but these errors were encountered: