aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-09 13:55:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-09 13:55:33 +0200
commita746dc64d2fa45456817c6ef8a4f82c6217e0392 (patch)
tree9fe491c6472bb88519bb42fbaf96c0f1bb275390
parentcead210e664785b25d7b5819133b74b4cc2c392b (diff)
Add currently failing test for #81
-rw-r--r--tests/flakes.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 26ffd6a9f..da952d552 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -110,6 +110,10 @@ nix build -o $TEST_ROOT/result --flake-registry $registry $flake2:bar
[[ -e $flake2/flake.lock ]]
git -C $flake2 commit flake.lock -m 'Add flake.lock'
+# Rerunning the build should not change the lockfile.
+nix build -o $TEST_ROOT/result --flake-registry $registry $flake2:bar
+[[ -z $(git -C $flake2 diff) ]]
+
# Now we should be able to build the flake in pure mode.
nix build -o $TEST_ROOT/result --flake-registry $registry flake2:bar