Skip to content

Commit

Permalink
fix(namaka): snapshots can change or be generated within std
Browse files Browse the repository at this point in the history
  • Loading branch information
Pegasust authored and blaggacao committed Sep 3, 2023
1 parent 66ae24b commit 3dca8ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/std/fwlib/blockTypes/namaka.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ in
subdir = target.snap-dir or "";
in [
(mkCommand currentSystem "eval" "use transparently with namaka cli" [] ''
nix eval '.#${fragment}.check'
nix eval '.#${fragment}'
'' {})
(mkCommand currentSystem "check" "run namaka tests against snapshots" [pkg] ''
namaka ${subdir} check -c nix eval '.#${fragment}.check'
namaka ${subdir} check -c nix eval '.#${fragment}'
'' {})
(mkCommand currentSystem "review" "review pending namaka checks" [pkg] ''
namaka ${subdir} review -c nix eval '.#${fragment}.check'
namaka ${subdir} review -c nix eval '.#${fragment}'
'' {})
(mkCommand currentSystem "clean" "clean up pending namaka checks" [pkg] ''
namaka ${subdir} clean -c nix eval '.#${fragment}.check'
namaka ${subdir} clean -c nix eval '.#${fragment}'
'' {})
];
}

0 comments on commit 3dca8ed

Please sign in to comment.