-
Notifications
You must be signed in to change notification settings - Fork 325
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
fix(docs): Change year in copyright footer automatically to current year #3079
Conversation
Do not merge: worked perfectly locally, but has no |
@comawill Try adding |
This would mean the docs and all derivations that depend on them would not become binary reproducible anymore. Can we just drop the year numbers from the footer entirely? |
89963b5
to
e10b685
Compare
@comawill I guess "date" inside the build returns unix epoch 0. I think the problem is that within a nix build you don't have access to the outside world's time. nix tries hard to make all builds deterministic on the input, so it forbids external inputs such as the time. |
As i wrote above, ideally we don't add a year number there at all. If we really want to, not make it automatic based on the current time, but manually, once per year. |
@smatting using My attempt was to depend on the git history here, but within Using the current year or a manual set one does not make a difference as the problems are caused by sphinx here when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to squash this before merge.
@comawill this broke builds outside the nix sandbox (
Would you mind sending a followup PR to fix this? |
@flokli wow, nice finding, sure, will make a PR |
Already happened in #3110. |
Sphinx operates on environment variable SOURCE_DATE_EPOCH to provide reproducible builds.
This PR intends to change the Makefile to set SOURCE_DATE_EPOCH to the latest git revision
Additionally sphinx will only do this correctly, when there are no spaces between the numbers and dash. [src]
Checklist
changelog.d