Skip to content

ci(unflake): prefetch nixpkgs into the store before write-unflake - #147

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

vic merged 1 commit into
mainfrom
fix/ci-unflake-prefetch

Conversation

@sini

@sini sini commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Check unflake fails on main (run 38305045119, both attempts) inside the unflake tool, before flake-file writes anything:

error: path '/nix/store/rfcpg2ry…-source/flake.nix' does not exist

unflake resolves the template's nixpkgs input (channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst) with fetchTree in one nix-instantiate process, then imports <outPath>/flake.nix from a second one. On a fresh runner that path isn't in the store. It passes locally with the same Nix (2.35.2), where the path already exists.

This adds one step to the job: nix flake prefetch on the same channel URL, which puts the source into the store before write-unflake runs. This is a workaround on our side only; the underlying problem is in unflake.

Validation

  • This PR carries the unflake label so the job runs here.

@sini sini added the unflake label Oct 12, 2026
@vic
vic merged commit 572087b into main Oct 12, 2026
4 checks passed
@vic
vic deleted the fix/ci-unflake-prefetch branch October 12, 2026 21:13
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