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

Use timestamp from the tag for reproducible tarballs #665

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

avsej
Copy link
Member

@avsej avsej commented Sep 25, 2024

To improve stability of the tarballs, we need to make sure that that the package does not have changing parts for releases. But at the same time, it is useful to have build date recorded. This patch instructs cmake to use timestamp from the tag, if it exists (GA packages), so the checksum of the tarballs would never change even if the tarball will be produced later on different machine. Embedded certificates would still affect reproducibility, but it is unlikely that they would change frequently.

To improve stability of the tarballs, we need to make sure that that the
package does not have changing parts for releases. But at the same time,
it is useful to have build date recorded. This patch instructs cmake to
use timestamp from the tag, if it exists (GA packages), so the checksum
of the tarballs would never change even if the tarball will be produced
later on different machine. Embedded certificates would still affect
reproducibility, but it is unlikely that they would change frequently.
@avsej avsej merged commit b5d8a1a into couchbase:main Sep 26, 2024
18 of 27 checks passed
@avsej avsej deleted the fix-reproducible-tarballs branch September 26, 2024 00:26
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.

1 participant