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 package builds reproducible #1067

Merged
merged 2 commits into from
Nov 19, 2019
Merged

Make package builds reproducible #1067

merged 2 commits into from
Nov 19, 2019

Conversation

nfnt
Copy link
Member

@nfnt nfnt commented Nov 18, 2019

What this PR does / why we need it:
For reproducible builder, certain file metadata has to be changed for archives. This is described in https://reproducible-builds.org/docs/archives/. File ordering is guaranteed by afero, file modification times and uid/gid are changed before adding them to the tarball.

Fixes #1066

For reproducible builder, certain file metadata has to be changed for archives. This is described in https://reproducible-builds.org/docs/archives/. File ordering is guaranteed by afero, file modification times and uid/gid are changed before adding them to the tarball.
@nfnt
Copy link
Member Author

nfnt commented Nov 18, 2019

To verify that this creates reproducible builds, please run

go run ./cmd/kubectl-kudo package create test/integration/first-operator-test/first-operator
shasum first-operator-0.1.0.tgz

The resulting SHA should be 1085805701d169cb6a23a2aac9238af8e7c6e707.

@nfnt
Copy link
Member Author

nfnt commented Nov 18, 2019

Let me see that this can be an integration test.

@nfnt nfnt self-assigned this Nov 19, 2019
@nfnt nfnt merged commit 9eaf5e0 into master Nov 19, 2019
@nfnt nfnt deleted the nfnt/reproducible-packages branch November 19, 2019 10:53
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.

KUDO package create isn't reproducible
2 participants