mirror of https://github.com/helm/helm
Closes #32396. StampModTimes now normalizes the supplied time to UTC and truncates to whole seconds before stamping. Without this, an SDK caller passing a local-timezone or sub-second time.Time would produce a Chart.lock generated: field with a timezone offset or fractional seconds, making the lock file content non-reproducible across machines even when the same SOURCE_DATE_EPOCH value is used — defeating the purpose of the feature. Also add: - testdata/charts/chart-with-lock fixture: a minimal chart with a Chart.lock whose generated: timestamp predates SOURCE_DATE_EPOCH. - TestRunWithSourceDateEpochStampsLockGenerated: packages the fixture with SourceDateEpoch set to a non-UTC, sub-second time.Time and asserts that the resulting archive's Chart.lock entry has both the correct tar modtime and the correct (normalized) generated: value in the marshaled YAML. Signed-off-by: Ilya Kiselev <kis-ilya-a@yandex.ru>pull/32485/head
parent
7e641d30a9
commit
3c3be926aa
@ -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