Skip to content

ci(unflake): run the unflake job on Nix 2.34.8 instead of prefetching nixpkgs - #148

Merged
vic merged 1 commit into
mainfrom
fix/ci-unflake-nix-2-34
Oct 12, 2026
Merged

vic merged 1 commit into
mainfrom
fix/ci-unflake-nix-2-34

Conversation

@sini

@sini sini commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #147. The prefetch got nixpkgs past the failure, but Check unflake then failed the same way on the next input (/nix/store/qmfsk97…-source/flake.nix does not exist). The problem isn't nixpkgs, it's every input.

Cause: unflake fetches each input with builtins.fetchTree in one nix-instantiate --eval --json process, then imports <outPath>/flake.nix from another. Nix 2.35 no longer copies a fetchTree source into the store when only its outPath string is printed. Nix 2.34 does.

Reproduced in an empty local store (--store local?root=…), fetching github:denful/import-tree:

Nix outPath in the store afterwards
2.34.8 /nix/store/qmfsk97…-source yes
2.35.2 /nix/store/qmfsk97…-source no, even after readDir on it

CI's cachix/install-nix-action@v31 installs 2.35.2, which is why the job only fails there.

This PR pins the unflake job to Nix 2.34.8 and removes the #147 prefetch, which is no longer needed. The real fix belongs in unflake: it should realise the paths it hands to the second process. Once that lands, the pin can go.

Validation

  • Labelled unflake so the job runs on this PR.

@sini sini added the unflake label Oct 12, 2026
@vic
vic merged commit d360050 into main Oct 12, 2026
12 checks passed
@vic
vic deleted the fix/ci-unflake-nix-2-34 branch October 12, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants