Skip to content

Commit 6405d68

Browse files
committed
tests/flakes: add regression test for resolving user flakes
1 parent 68de26d commit 6405d68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/functional/flakes/flakes.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ nix registry add user-flake2 "git+file://$percentEncodedFlake2Dir"
266266
[[ $(nix --flake-registry "" registry list | wc -l) == 2 ]]
267267
nix --flake-registry "" registry list | grepQuietInverse '^global' # nothing in global registry
268268
nix --flake-registry "" registry list | grepQuiet '^user'
269+
nix flake metadata --flake-registry "" user-flake1 | grepQuiet 'URL:.*flake1.*'
269270
nix registry remove user-flake1
270271
nix registry remove user-flake2
271272
[[ $(nix registry list | wc -l) == 4 ]]

0 commit comments

Comments
 (0)