archive: use 1970-01-01 as the whiteout timestamp
The whiteout timestamps are no longer set to the source date epoch. The source date epoch still applies to non-whiteout files. Discussion happened in moby/buildkit PR 3560. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -125,8 +125,11 @@ func WithPayloads(payloads map[string]typeurl.Any) ApplyOpt {
|
||||
}
|
||||
}
|
||||
|
||||
// WithSourceDateEpoch specifies the timestamp used for whiteouts to provide control for reproducibility.
|
||||
// WithSourceDateEpoch specifies the timestamp used to provide control for reproducibility.
|
||||
// See also https://reproducible-builds.org/docs/source-date-epoch/ .
|
||||
//
|
||||
// Since containerd v2.0, the whiteout timestamps are set to zero (1970-01-01),
|
||||
// not to the source date epoch.
|
||||
func WithSourceDateEpoch(tm *time.Time) Opt {
|
||||
return func(c *Config) error {
|
||||
c.SourceDateEpoch = tm
|
||||
|
||||
Reference in New Issue
Block a user