aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-31 22:17:39 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-31 22:17:39 +0200
commit8cb3bbd5044b8fbfc65f13455d1619a78ccf33a5 (patch)
treecd63e4b68b00abc1d0175c53b40b54ec61175270 /tests
parent8abb8647a33c3516026cd8a2954d34633377b23c (diff)
Fix handling of bare flakerefs containing a colon
Diffstat (limited to 'tests')
-rw-r--r--tests/flakes.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 8b9cb7260..c4dd8c333 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -134,6 +134,9 @@ nix build -o $TEST_ROOT/result --flake-registry $registry flake1:foo
nix build -o $TEST_ROOT/result --flake-registry $registry flake1
[[ -e $TEST_ROOT/result/hello ]]
+nix build -o $TEST_ROOT/result --flake-registry $registry $flake1Dir
+nix build -o $TEST_ROOT/result --flake-registry $registry file://$flake1Dir
+
# Building a flake with an unlocked dependency should fail in pure mode.
(! nix eval "(builtins.getFlake "$flake2Dir")")