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

Make output archives more reproducible #55

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

diconico07
Copy link

This commit stores the mtime of the go.mod file as the mtime for all files in the produced archive.

It also remove the optional timestamp in gz archive.

This is enought to get reproducible output for tar.gz, tar.xz and tar.zstd.

For obscpio files, it will not be possible to get reproducible output without some modifications to libarchive or not using libarchive for cpio output, so didn't do anything for this file format right now

This commit stores the mtime of the go.mod file as the mtime for all
files in the produced archive.

It also remove the optional timestamp in gz archive.

This is enought to get reproducible output for tar.gz, tar.xz and
tar.zstd.

Signed-off-by: Nicolas Belouin <[email protected]>
@marcosbc
Copy link

marcosbc commented Oct 22, 2024

Thanks for this @diconico07! It is really helpful for us.

@jfkw
Copy link
Collaborator

jfkw commented Oct 22, 2024

Yes, thanks for the contribution, accepting.

@jfkw jfkw merged commit 1ac9413 into openSUSE:master Oct 22, 2024
2 checks passed
@marcosbc
Copy link

@jfkw Could we have a new release with this feature?

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.

3 participants