Uh oh!
There was an error while loading. Please reload this page.
fix: exclude checkout operation-lock diagnostics from Nix fixed outputs - #207
Merged
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 5, 2026
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 freeto 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.
Root cause
The checkout-local
.zed/operation.lockis a durable rendezvous file whose human diagnostics contain process, host, and timing information.fetchZedDepscopied the complete.zeddirectory into its recursive fixed output, so two otherwise-identical frozen installs produced different NAR hashes on both Linux and macOS.The descriptor lock remains the only ownership authority; the diagnostic bytes are deliberately non-semantic.
Fix
.zed/operation.lockafter the frozen install is complete and before copying the dependency tree into$out..zeddirectory only when no deterministic adapter wiring remains..zedadapter file if the directory is not empty.Validation
The final review delta is one ordinary product file. The normal
nix-interopworkflow bootstraps the recursive output hash, rebuilds the same frozen dependency graph under two different derivation names, compares both NAR hashes to the bootstrapped hash, and exercises the ordinary offline consumer, incorrect-hash rejection, and tampered-lock canaries on Ubuntu and macOS.This unblocks the exact-head gates for
zed env export misePR #131 without weakening fixed-output verification.Superseded PR salvage
Supersedes: none