Fix Nix flake recursion and enforce root/workspace Nix validation in PR CI - #31
Draft
shielded-nate with Copilot wants to merge 15 commits into
Draft
Fix Nix flake recursion and enforce root/workspace Nix validation in PR CI#31shielded-nate with Copilot wants to merge 15 commits into
shielded-nate with Copilot wants to merge 15 commits into
Conversation
Copilot
AI
changed the title
Draft: Add root flake and share zebra-crosslink flake outputs
Unify monorepo and subtree flakes via shared Zebra outputs module
May 28, 2026
Copilot created this pull request from a session on behalf of
shielded-nate
May 28, 2026 21:36
View session
shielded-nate
requested changes
May 28, 2026
shielded-nate
left a comment
There was a problem hiding this comment.
The first verification step I did immediately failed; @copilot please fix:
$ nix build --print-build-logs
error:
… while evaluating the attribute 'root.result'
at «flakes-internal»/call-flake.nix:94:7:
93| {
94| result =
| ^
95| if node.flake or true then
… in the left operand of the update (//) operator
at «flakes-internal»/call-flake.nix:81:9:
80| # This is shadowed in the next //
81| // sourceInfo
| ^
82| // {
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: syntax error, unexpected '='
at /nix/store/srq4vs55a79jfdr6a0h1qwyigqynw8pn-source/zebra-crosslink/flake/outputs.nix:135:17:
134| do
135| files+=("$f")
| ^
136| done < <(find '${p}' -type f -name '*.nix' -print0)
Author
Addressed in |
shielded-nate
requested changes
Jun 3, 2026
shielded-nate
left a comment
There was a problem hiding this comment.
I still cannot verify a simple nix build on my system. @copilot please ensure the github action verification is using nix and running a similar command for verification, and also, fix the error shown here:
$ time nix build --print-build-logs
error:
… while calling the 'import' builtin
at /nix/store/149l5az424sdxh3vvfykxf102siwhnb1-source/zebra-crosslink/flake/default.nix:26:10:
25| let
26| pkgs = import nixpkgs {
| ^
27| inherit system;
… while realising the context of a path
… while evaluating the attribute 'nixpkgs'
at /nix/store/149l5az424sdxh3vvfykxf102siwhnb1-source/zebra-crosslink/flake/default.nix:40:5:
39| flakelib = {
40| nixpkgs = pkgs;
| ^
41|
error: infinite recursion encountered
at /nix/store/149l5az424sdxh3vvfykxf102siwhnb1-source/zebra-crosslink/flake/default.nix:40:5:
39| flakelib = {
40| nixpkgs = pkgs;
| ^
41|
real 0m1.838s
user 0m0.131s
sys 0m0.285s
Copilot
AI
changed the title
Unify monorepo and subtree flakes via shared Zebra outputs module
Fix flake evaluation recursion in zebra-crosslink build lib
Jun 8, 2026
Copilot
AI
changed the title
Fix flake evaluation recursion in zebra-crosslink build lib
Add PR-gated Nix verification workflow for build and dev-shell compile
Jun 9, 2026
Copilot
AI
changed the title
Add PR-gated Nix verification workflow for build and dev-shell compile
Fix Nix flake recursion and enforce root/workspace Nix validation in PR CI
Jun 10, 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 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.
nix buildcould fail at flake evaluation due to an infinite recursion inzebra-crosslink/flake/default.nix, and CI did not consistently validate the same Nix entrypoints contributors run locally. This update fixes the flake recursion and adds explicit PR-time verification for both repository-root andzebra-crosslinkNix flows.Flake evaluation fix (
zebra-crosslink/flake/default.nix)flakelibto a recursive attrset (rec) and removed self-referential inheritance that triggered infinite recursion during evaluation.PR validation workflow (
.github/workflows/nix-verify.yml)main.nix build --print-build-logsin repo rootnix build --print-build-logsinzebra-crosslinknix develop --command cargo buildinzebra-crosslinkCoverage alignment with contributor usage