Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oci_tarball: set mtime to 2000-01-01 #380

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

gergelyfabian
Copy link
Contributor

This way we can generate reproducible tars and avoid sha256sums changing for the tar output of the oci_tarball rule.

This way we can generate reproducible tars and avoid sha256sums changing
for the tar output of the oci_tarball rule.
@gergelyfabian
Copy link
Contributor Author

Potential fix for #328.
oci_tarball is now generating a reproducible tar.

@thesayyn
Copy link
Collaborator

this is possibly one of the many non-hermetic input here.

@thesayyn thesayyn merged commit 96582a4 into bazel-contrib:main Sep 29, 2023
15 checks passed
@thesayyn thesayyn changed the title oci_tarball: fix file time to 2000-01-01 for files inside the tar oci_tarball: set mtime to 2000-01-01 Sep 29, 2023
@gergelyfabian gergelyfabian deleted the oci_tarball_fix_datetime branch September 29, 2023 20:21
@chancila
Copy link

chancila commented Oct 2, 2023

was this PR tested on macs? macos (seems like bsd in general) tar does not have --mtime in its man page

@chancila
Copy link

chancila commented Oct 2, 2023

verified this does not work on macos, @thesayyn this PR should probably be reverted?

@alexeagle
Copy link
Collaborator

Yup, reverting.

@gergelyfabian
Copy link
Contributor Author

@alexeagle , thanks for the revert. Yes, indeed I diid not test this on mac (I have none).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants