mirror of https://github.com/helm/helm
Go's `archive/tar` package rounds archive member file timestamps to the closest second unless the POSIX.1-2001 "PAX" tar format is used (see https://pkg.go.dev/archive/tar#Format). This results in noise in processes where the helm charts are immediately extracted by (at least) GNU tar for repackaging/modification/inspection, where tar complains (if the original creation time ended up being rounded up) that `time stamp 2025-10-02 12:06:47 is 0.469095762 s in the future` or similar. This behavior is unlikely to be changed in the the `archive/tar` package; ref comments in golang/go#48275. An alternative fix is to truncate the file mtimes to the nearest second in the past using `ModTime: time.Now().Truncate(time.Second)`, as also suggested in the golang issue referenced above. Signed-off-by: Arne Georg Gisnås Gleditsch <arne@gledits.ch>pull/31352/head
parent
a7a6a5e3b0
commit
f67c577956
Loading…
Reference in new issue