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
Use SOURCE_DATE_EPOCH if available in the environment. #12
Conversation
Whilst working on the Reproducible Builds effort [0], we noticed that node-marked-man generated reproducible output. In particular, it uses the current timestamp which varies between builds. Patch attached that uses SOURCE_DATE_EPOCH[1] if that is exported in the environment. [0] https://reproducible-builds.org/ [1] https://reproducible-builds.org/specs/source-date-epoch/ Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
|
I believe the right way to fix this is to use |
|
Done in version 0.3.0 |
Thanks for the change so that accepts a timestamp. However, I saw that command line option and you are correct that you could pass the timestamp there. However, Making So, I believe this issue is still outstanding. |
|
I don't, you can't expect upstream to implement debian-related woes. It's up to debian to update their scripts. |
|
Oh, this isn't a Debian-specific woe or a Debian-specific concern; Homebrew, LEDE, OpenSUSE, Fedora, OpenWRT, Nix, Tails, etc. all export this variable and generally expect it to do the right thing :) (I only mentioned Debian as a concrete example) And the scripts in question are in other node modules, not in Debian-specific scripts. For example in loose-envify, semver, sshpk etc. etc. but there are many more. |
|
ok ok, i might reconsider, just give me some time (or more examples, like what about other documentation generators) to make my mind. |
|
Sure, see doxygen, naturaldocs, latex, asciidoc, man2html,groovydoc, groff (ie. UNIX man), htmldoc, lua's ldoc, Haskell's "haddock", texi2html, sphinx, pod2man, Erlang's edoc. Enough? :) |
|
Gentle ping on this? |
|
I'll release a new version soon. |
|
Thanks! |
Whilst working on the Reproducible Builds effort [0], we noticed
that node-marked-man generated reproducible output. In particular,
it uses the current timestamp which varies between builds.
Patch attached that uses SOURCE_DATE_EPOCH[1] if that is exported
in the environment.
[0] https://reproducible-builds.org/
[1] https://reproducible-builds.org/specs/source-date-epoch/
Signed-off-by: Chris Lamb chris@chris-lamb.co.uk