mirror of https://github.com/helm/helm
Tar headers have second-level granularity and store timezone-independent Unix timestamps. Normalize SourceDateEpoch with .UTC().Truncate(time.Second) so callers passing sub-second or non-UTC values still get deterministic output. Also verify in the test that gzip header ModTime is zero (helm design) and compare tar entry ModTimes with time.Equal() since tar.Reader returns local time. Signed-off-by: Ilya Kiselev <kis-ilya-a@yandex.ru>pull/32173/head
parent
1df209e084
commit
9b457ea032
Loading…
Reference in new issue