diff options
author | Stéphan Kochen <git@stephank.nl> | 2021-02-22 21:05:37 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-09-02 13:53:09 +0200 |
commit | b2f966f4871cf02c2505afe88a296e429859a7b3 (patch) | |
tree | f0470c0d14fd01a9ae033b2e27bc7a2bc806be51 | |
parent | 77ca5e951c60de53c801dcad583eb4027962ea4b (diff) |
Failing test case for flake in store
-rw-r--r-- | tests/flakes.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh index f5c7b6804..29f0fe05e 100644 --- a/tests/flakes.sh +++ b/tests/flakes.sh @@ -23,6 +23,7 @@ flake6Dir=$TEST_ROOT/flake6 flake7Dir=$TEST_ROOT/flake7 templatesDir=$TEST_ROOT/templates nonFlakeDir=$TEST_ROOT/nonFlake +badFlakeDir=$TEST_ROOT/badFlake flakeA=$TEST_ROOT/flakeA flakeB=$TEST_ROOT/flakeB flakeGitBare=$TEST_ROOT/flakeGitBare @@ -772,3 +773,8 @@ EOF git -C $flakeFollowsA add flake.nix nix flake lock $flakeFollowsA 2>&1 | grep 'this is a security violation' + +# Test flake in store does not evaluate +mkdir $badFlakeDir +echo INVALID > $badFlakeDir/flake.nix +nix store delete $(nix store add-path $badFlakeDir) |