mirror of https://github.com/helm/helm
stampModTimes lived in pkg/action as a free function operating on *chart.Chart from outside the package. Moved it to chart.Chart.StampModTimes in pkg/chart/v2, which is also where it can reach the private dependencies field directly instead of going through the exported Dependencies() accessor. While moving it, also stamp Lock.Generated when Lock is set: chartutil.Save uses Lock.Generated as the tar entry modtime for Chart.lock, so without this the lock file entry kept its original timestamp and broke reproducibility for any chart with a Chart.lock. Signed-off-by: Ilya Kiselev <kis-ilya-a@yandex.ru>pull/32173/head
parent
b0c3f438f3
commit
cd6bf78a20
@ -0,0 +1,3 @@
|
||||
dependencies: []
|
||||
digest: sha256:0000000000000000000000000000000000000000000000000000000000000
|
||||
generated: "2016-01-01T00:00:00Z"
|
||||
@ -0,0 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: chart-with-lock
|
||||
version: 0.1.0
|
||||
description: Test chart with a Chart.lock, used to verify SourceDateEpoch stamping
|
||||
Loading…
Reference in new issue