Repository navigation
fix(nix): add codeload fallback for Ghostty package archives - #220
Draft
schickling-assistant wants to merge 1 commit into
Draft
schickling-assistant wants to merge 1 commit into
schickling-assistant wants to merge 1 commit into
Conversation
agent-identity: agent/dotfiles/fractal-product-lead agent-persona: generalist agent-supervisor: unavailable agent-tool: OMP agent-tool-version: 18.12.5 agent-runtime: OMP 18.12.5 agent-model: openai-codex/gpt-6.1-sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Cold Nix builds of
ghostty-a887df4-zig-depsfail when GitHub archive endpoints return HTTP 5xx, blocking consumers before Rust compilation. The pinned imgui and zigimg archives are also available through codeload.Goal
Make archive transport resilient without changing dependency contents or the package-cache output hash.
Decisions
flatpak/zig-packages.json.fetchurlderivation withurls = [ original codeload ].build.zig.zon.txt. Keep Ghostty's existing cache population script and all other fetching unchanged.ghosttyContract.zigDepsHash. Both archive checksums and the complete cache recursive output hash stay enforced.Verification
PROOF PENDING: the local heavy-gate request is queued at this exact head. The proof will rebuild the two archive derivations with
github.comforced to loopback, requiring codeload fallback, then--rebuildthe complete cache against its unchanged recursive output hash. No existing store path is deleted. Results will be posted as a PR comment after completion; no successful local evaluation/build is claimed yet.Complexity
Two archive inputs derived from upstream metadata, no new independent pin list or changed version. Reading the upstream manifest realizes its already-pinned source during evaluation.
Concerns
Archive transport only: Git sources and other archive origins retain their existing behavior. The FOD output is unchanged, so consumers that already have it need no fetch.
Release note
Improves cold-cache Nix build reliability during GitHub archive outages. No runtime behavior, API, schema, migration, or dependency content changes. README documents the fetch behavior.
Friction & bottlenecks
The archive outage prevents cold builds; local proof admission is queued behind shared build capacity.
Follow-ups
Consumer pin adoption after producer review and merge.
References
Content authority remains
libghostty-vt-contract.json; archive metadata comes from the exact Ghostty revision it pins.Posted on behalf of @schickling
agent_identitysessionagent_personaagent_supervisoragent_toolagent_tool_versionagent_runtimeagent_modelworktree