Skip to content

Pass epoch parameter via SOURCE_DATE_EPOCH - #29

Merged
anthrotype merged 2 commits into
mainfrom
fix-source-date-epoch
Jul 14, 2026
Merged

anthrotype merged 2 commits into
mainfrom
fix-source-date-epoch

Conversation

@anthrotype

Copy link
Copy Markdown
Member

The bundled executable honors SOURCE_DATE_EPOCH but rejects --epoch flag. Pass the public API's epoch parameter through the subprocess environment instead of formatting it as a command-line argument.

Added regression coverage for the parse_args() API path and python -m ttfautohint.

Fixes #28

/cc @arrowtype

@anthrotype anthrotype changed the title Pass the public API epoch via SOURCE_DATE_EPOCH Pass epoch parameter via SOURCE_DATE_EPOCH Jul 14, 2026
@anthrotype
anthrotype force-pushed the fix-source-date-epoch branch from 4789a2a to eb6f012 Compare July 14, 2026 22:31
@anthrotype
anthrotype merged commit 022db62 into main Jul 14, 2026
9 of 10 checks passed
@anthrotype
anthrotype deleted the fix-source-date-epoch branch July 14, 2026 23:48
@arrowtype

Copy link
Copy Markdown

Hey @anthrotype, amazing – thank you so much for making the fix and letting me know!

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

Successfully merging this pull request may close these issues.

Currently bundled ttfautohint executable reads SOURCE_DATE_EPOCH from the environment but does not support --epoch

2 participants