Repository navigation
fix: fetch the gen and nix-effects fallbacks as .tar.gz - #771
Merged
Merged
Conversation
Both fallbacks handed GitHub's .zip archive URL to builtins.fetchTarball, which is documented for tarballs. An evaluator without a zip reader fails on it. GitHub's .zip and .tar.gz archives of one rev unpack to the same tree, so the narHash pins in the CI lock are unchanged. Reported in GitHub #770.
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.
Summary
Reported by @Keyruu in #770. When a config doesn't declare a
geninput, den fetches gen itself (nix/lib/schema.nix), and it does so by handing GitHub's.ziparchive URL tobuiltins.fetchTarball. On their fresh machine that failed:That's a tar reader meeting a zip's
PKheader. Thenix-effectsfallback innix/lib/fx.nixhas the same shape.This switches both fallbacks to GitHub's
.tar.gzarchive, which is whatfetchTarballis documented to take. GitHub's.zipand.tar.gzarchives of one rev unpack to the same tree, so thenarHashpins in the CI lock still match and nothing else changes.Nix, Determinate and Lix all unpack the zip (table below), so the failure isn't theirs. The reporter's config evaluates with iets, which unpacks with the Rust
tarcrate and has no zip reader; the error is word for word numtide/iets#300, which reports this same fallback at the same gen rev. The change is correct either way: it stops depending onfetchTarballalso accepting a format it isn't documented for.Validation
The gen fetch at den's pinned rev and
narHash, each evaluator in a fresh, empty store and fetcher cache:.zip.tar.gzlazy-treeson and offEvery row gives the same store path.
den's patched
schema.nixandfx.nix, imported with nogenornix-effectsinput so both fallbacks run, each in a fresh store: evaluate on Nix 2.34.9, Determinate 3.24.2 (lazy-treeson and off) and Lix 2.95.4.Full suite (
ci.bash, 4 workers): 2208/2208. CI declares both inputs, so the suite never takes the fallbacks; it only shows nothing else moved.