Skip to content

build(Terminal): vendor ghostty's translate-c dependency so CI does not need Codeberg - #162

Merged
239573049 merged 1 commit into
mainfrom
fix/ghostty-vendored-deps
Nov 17, 2026
Merged

239573049 merged 1 commit into
mainfrom
fix/ghostty-vendored-deps

Conversation

@239573049

Copy link
Copy Markdown
Member

Why. Codeberg currently answers CI runners with 429 / 504, and ghostty's pkg/translate-c is fetched from there. As a result:

  • the Native jobs of the v1.1.1 tag run (macOS hung until its 60-minute timeout) and of the v1.2.0-preview.1 tag run (Linux: bad HTTP response code: '504 Gateway Timeout') failed;
  • neither release reached nuget.org: the latest there is still 1.1.1-preview.5.

Tag runs cannot restore an earlier Zig cache either: caches are scoped to the ref, and the Native job does not run on main.

What.

  • native/ghostty/deps/ holds the 93 KB MIT-licensed translate_c archive, named after its Zig package hash.
  • build-ghostty.sh seeds the Zig cache with it (zig fetch, which checks the hash) before zig build.
  • native/ghostty/deps/README.md says how to refresh the file when the ghostty pin moves.

Checked locally (osx-arm64). With an empty-for-translate-c Zig cache, the build seeds the package from the vendored file and produces libghostty-vt.dylib. A manual CI run on this branch with publish off checks the Native and Pack jobs.

🤖 Generated with Claude Code

…ot need Codeberg

Since 2026-11-17 Codeberg answers CI runners with 429 / 504, and zig build fetches translate-c from there: the Native jobs
of the v1.1.1 and v1.2.0-preview.1 tag runs failed or hung until their timeout, so neither release reached nuget.org.
CI cannot restore an earlier Zig cache either (tag runs only see their own ref's caches). build-ghostty.sh now seeds the
Zig package cache from native/ghostty/deps/ (zig fetch, which checks the package hash) before it builds; the file is the
93 KB MIT-licensed archive, named after its Zig hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@239573049
239573049 merged commit 4dbac36 into main Nov 17, 2026
33 checks passed
239573049 added a commit that referenced this pull request Nov 18, 2026
The 3D engine and its controls as four new preview packages with their own version (0.1.0-preview.1), and the
Terminal build fix of #162.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
239573049 added a commit that referenced this pull request Nov 18, 2026
The 3D engine and its controls as four new preview packages released with the main version, and the Terminal build fix of #162. 1.2.0-preview.2 was never published.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant