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.
(tm *time.Time)
| 155 | // Since containerd v2.0, the whiteout timestamps are set to zero (1970-01-01), |
| 156 | // not to the source date epoch. |
| 157 | func WithSourceDateEpoch(tm *time.Time) Opt { |
| 158 | return func(c *Config) error { |
| 159 | c.SourceDateEpoch = tm |
| 160 | return nil |
| 161 | } |
| 162 | } |