-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Built fonts lack git hash in version name IDs #234
Comments
I've made a simple FontTools patch for this: (This is just a temporary solution, but useful for my PR.) |
I’m trying to reproduce this but whatever I do I get the git hash in the version as expected. These are the steps I take to reproduce:
Is it possible you are building without a
|
Friendly ping :–) |
Hi Rasmus, thanks for taking the time to respond to this. I just reproduced this again by:
Full output (Click to expand)
And finding nameIDs 3 & 5:
Just to be sure, I repeated this in the new clone with
...but get the same result in names 3 & 5. For my google/fonts PR, I ended up trying to solve/patch this with a specific script that detects the latest merged commit from master, and appends that to these names. It's not the cleanest solution, but I believe it is accurate. Of course, I suppose that it could be considered inaccurate if you want to have the commit hash not from your Have you been able to try reproducing this on a third computer, by any chance? We could ask someone like Katja for help in running this build. It's possible there is something particular in the Python / brew packages on one of our computers (most likely mine, I would guess) that is impacting this. P.S.: Nice way to find something in an XML file with grep! I didn't know about the |
I got a repro! Investigating... |
Found it! Oh man, it was a tricky one: So two different python files defined That was a tough bug to track down. Thank you! |
Woah! Yeah, I tend to find that Python doesn't make it particularly easy to import things between files. Glad you got it solved! Nice work. |
Describe the bug
In #229, I related that I wasn't able to build the fonts. Luckily, the main issue was solved quite easily. However, I closed it before realizing that a smaller sub-issue wasn't yet solved:
I'm just realizing that this issue is still present in my builds: there is no git hash in versions. I get this:
...and this:
To Reproduce
I'm building with build.sh in
https://github.com/thundernixon/inter/tree/qa.
This is happening for both the variable and static fonts I build.
Expected behavior
I expect the version names to include the latest git hash.
Environment
Additional context
Related to PR google/fonts#1908
The text was updated successfully, but these errors were encountered: