Skip to content
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

Set SOURCE_DATE_EPOCH when buliding outputs #166

Open
alerque opened this issue May 30, 2024 · 0 comments
Open

Set SOURCE_DATE_EPOCH when buliding outputs #166

alerque opened this issue May 30, 2024 · 0 comments

Comments

@alerque
Copy link
Member

alerque commented May 30, 2024

Given the relatively large assortment of builds involved in a project I think the build dates ending up in PDFs and even images is getting to be relatively meaningless. The timestamps in the file and even on the output is a distracting difference that makes it harder to know if there are any real differences.

I think we should be setting SOURCE_DATE_EPOCH universally during our builds. This probably means extending the shell wrapper used for make targets to first sample all the input files being passed to the target, finding the newest one, then exporting the env var before running the rest of the commands from the target.

The biggest question will be whether to include project-local dependencies (e.g. as found and processed with git warp-time) or all the inputs (including system Lua libraries, fonts, etc.)

With that done we should review anywhere we use the system date ourselves and make sure that it checks for the environment variable first.

c.f. https://fosstodon.org/@pandoc/112529242207941776

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant