aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Bereknyei <tomberek@gmail.com>2021-08-18 00:04:55 -0400
committerTom Bereknyei <tomberek@gmail.com>2021-09-08 19:38:22 -0400
commitdc25856d7469d8be2ff12a431cd11baedfee72d7 (patch)
treec2a8fe98c70454d81650d290840fa3cec3e2a99f /tests
parenta82de5b31b31e54023f5e4f9483b369f2ece278c (diff)
Ensure nix flake show produces valid json
Diffstat (limited to 'tests')
-rw-r--r--tests/flakes.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 9e1b5b508..1bce4e4bd 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -386,12 +386,14 @@ git -C $templatesDir commit -m 'Initial'
nix flake check templates
nix flake show templates
+nix flake show templates --json | jq
(cd $flake7Dir && nix flake init)
(cd $flake7Dir && nix flake init) # check idempotence
git -C $flake7Dir add flake.nix
nix flake check $flake7Dir
nix flake show $flake7Dir
+nix flake show $flake7Dir --json | jq
git -C $flake7Dir commit -a -m 'Initial'
# Test 'nix flake new'.