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 skaffold reproducible #6238
Conversation
Use SOURCE_DATE_EPOCH to set the previous build date when rebuilding a built binary. Motivation: https://reproducible-builds.org/
Codecov Report
@@ Coverage Diff @@
## master #6238 +/- ##
=======================================
Coverage 70.82% 70.83%
=======================================
Files 487 487
Lines 22048 22048
=======================================
+ Hits 15616 15618 +2
+ Misses 5425 5424 -1
+ Partials 1007 1006 -1
Continue to review full report at Codecov.
|
|
@jelly just curious, how would you know what should be the value of |
Arch Linux ships skaffold as an Arch Linux package when building we record the build time and store this with other meta-data about the build environment in a .BUILDINFO file. When we reproduce the build package, we extract the meta-data and re-construct the build environment and set the SOURCE_DATE_EPOCH variable to the build time of the package. This makes the reproduced package to be build with the exact same time as the original package. More information can be found in these links: |
Thanks for the explanation. |
Use SOURCE_DATE_EPOCH to set the previous build date when rebuilding a
built binary.
Motivation: https://reproducible-builds.org/
Description
To make this package reproducible in Arch Linux and other distributions, we require SOURCE_DATE_EPOCH to be read if set, so when we are rebuilding an old package we can set the old build date which removes the build variation.
The problem can be spotted here https://reproducible.archlinux.org/api/v0/builds/137544/diffoscope