-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/cnb/lifecycle/creator with SOURCE_DATE_EPOCH env var not working #943
Comments
@jjbustamante Following your tips fixed the image creation date issue, but the build output files' timestamps are still zero: |
@uqix that is expected. The SOURCE_DATE_EPOCH only applies to the OCI config/metadata files. |
In theory we could in the future allow buildpacks to set metadata on a per-layer basis to have the lifecycle omit zeroing the timestamps for particular layers. But this would require an RFC... |
I see, I misunderstood the |
Summary
According to the spec here https://github.com/buildpacks/spec/blob/main/platform.md#exporter, I try to pass
SOURCE_DATE_EPOCH
env var to/cnb/lifecycle/creator
:but the creation date of the resulting image is still 01/01/1980.
Reproduction
Steps
SOURCE_DATE_EPOCH=... /cnb/lifecycle/creator ...
Current behavior
Image creation date = 01/01/1980
Expected
Image creation date = <SOURCE_DATE_EPOCH>
Context
lifecycle version
paketobuildpacks/builder:0.3.45-base
https://github.com/paketo-buildpacks/base-builder/releases/tag/v0.3.45
platform version(s)
0.9
anything else?
The text was updated successfully, but these errors were encountered: