Preserve mtime of files when preserve_mtime flag is set#192
Preserve mtime of files when preserve_mtime flag is set#192kellycampbell wants to merge 1 commit intobazelbuild:masterfrom
Conversation
|
This has be a distinct flag. In #155 we determined that preserve mtimes of files in included tarballs. will not break repeatable builts. Using the mtime of files has reproducibility problems. |
aiuto
left a comment
There was a problem hiding this comment.
To make the discussion shorter.
- The flag should be named
unsafe_use_filesystem_mtimesThe 'unsafe' is a warning. because this is a foot-gun w.r.t. local vs. remote build. - It needs integration tests. I strongly suggest you wait for me to merge #196 before writing those
|
My first path of action and still my preference would be to make this able to use the build stamp vars and the |
|
That is certainly different than what this PR does. What if there was a magical syntax like |
Isn't that one of the purposes for the existing build stamping in Bazel, e.g. with
Reproducible in the exact down to the byte form is not required. The main thing needed is for the files served via http from the new image should be the same or newer timestamps compared to the previously built and deployed image so the |
Similar to #155, we need to have our content files served with a timestamp representing when they were last modified or built.