4 ms·
Toolchains for reproducible software likely let you set these values, or ensure they are 1970-01-01 00:00:00
by fmbb 2y ago
Toolchains for reproducible software likely let you set these values, or ensure they are 1970-01-01 00:00:00
- mikepurvis 2y agoNix sets everything to the epoch, although I believe Debian's approach is to just use the date of the newest file in the dsc tarballs.
- yjftsjthsd-h 2y agoNix can also set it to things other than 0; I think my favorite is to set it by the time of the commit from which you're building.
- deleted 2y ago[deleted]
- terinjokes 2y agoWhich is also used when the contents of a derivation will be included in a zip file. The Unix epoch is about a decade older than the zip epoch.
- lamby 2y agoDebian's approach is actually to use the date specified in the top entry in the debian/changelog file. That's more transparent and resilient than any mtime.
- lamby 2y agoStrangely enough, sometimes using the epoch can expose bugs in libraries (etc.) when running or building in a timezone west of Greenwich due to the negative time offset taking time "below" zero.