Make skaffold reproducible by jelly · Pull Request #6238 · GoogleContainerTools/skaffold (original) (raw)

Conversation

@jelly

@jelly

@codecov

@tejal29

@jelly just curious, how would you know what should be the value of SOURCE_DATE_EPOCH when trying to reproduce the build for a date in past?

@jelly

@jelly just curious, how would you know what should be the value of SOURCE_DATE_EPOCH when trying to reproduce the build for a date in past?

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:
https://man.archlinux.org/man/core/pacman/makepkg.8.en#REPRODUCIBILITY
https://reproducible-builds.org/docs/source-date-epoch/

tejal29

@tejal29

@jelly just curious, how would you know what should be the value of SOURCE_DATE_EPOCH when trying to reproduce the build for a date in past?

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:
https://man.archlinux.org/man/core/pacman/makepkg.8.en#REPRODUCIBILITY
https://reproducible-builds.org/docs/source-date-epoch/

Thanks for the explanation.

@jelly jelly deleted the reproduciblebuilds branch

August 3, 2021 11:58

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Labels

2 participants

@jelly @tejal29