-
Notifications
You must be signed in to change notification settings - Fork 5
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
manifest generation issue with tarball target #71
Comments
looks like |
This did not seem to resolve the issue with It did make a difference when running |
For a font package to create a manifest.json, each font must contain an axes dictionary {axis: value}. Absence of an axes dictionary results in no manifest being made. This was causing the crash but is now silently not included in the package. Users should endeavour to create an axes dictionary for fonts not created from a designspace (since designspaces automatically insert an axes dictionary). |
I am confused.
|
The recent fix enabled smith release to work for the two projects that had this issue. However,
|
@mhosken found that if With another fix |
However be careful, as the shortcircuit mechanism does not properly set some font metadata. IOW removing that line may generate a fontmanifest.json file, but the fonts may be bad, and the axis values in the fontmanifest.json file may be incorrect. |
when doing a smith release (aka chaining zip and tarball), the zip target runs fine but the tarball one does not seem to find (or generate in the expected folder) the manifest.json file:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/waflib/Scripting.py", line 154, in waf_entry_point
run_commands()
File "/usr/lib/python3/dist-packages/waflib/Scripting.py", line 245, in run_commands
run_command(cmd_name)
File "/usr/lib/python3/dist-packages/waflib/Scripting.py", line 231, in run_command
ctx.execute()
File "/usr/lib/python3/dist-packages/waflib/Scripting.py", line 551, in execute
return execute_method(self)
File "/usr/lib/python3/dist-packages/smithlib/wafplus.py", line 369, in execute
return old_exec(bld)
File "/usr/lib/python3/dist-packages/waflib/Build.py", line 228, in execute
self.execute_build()
File "/usr/lib/python3/dist-packages/waflib/Build.py", line 259, in execute_build
self.post_build()
File "/usr/lib/python3/dist-packages/smithlib/package.py", line 772, in post_build
p.execute_tar(self)
File "/usr/lib/python3/dist-packages/smithlib/package.py", line 392, in execute_tar
tar.add(y.abspath(), arcname = archive_name)
File "/usr/lib/python3.8/tarfile.py", line 1955, in add
tarinfo = self.gettarinfo(name, arcname)
File "/usr/lib/python3.8/tarfile.py", line 1834, in gettarinfo
statres = os.lstat(name)
FileNotFoundError: [Errno 2] No such file or directory: '/smith/font-tagmukay/results/manifest.json'
The text was updated successfully, but these errors were encountered: