File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,14 @@ nix build -o "$TEST_ROOT/result" "git+file://$flake1Dir#default"
106106nix build -o " $TEST_ROOT /result" " $flake1Dir ?ref=HEAD#default"
107107nix build -o " $TEST_ROOT /result" " git+file://$flake1Dir ?ref=HEAD#default"
108108
109+ # Check that relative paths are allowed for git flakes.
110+ # This may change in the future once git submodule support is refined.
111+ # See: https://discourse.nixos.org/t/57783 and #9708.
112+ (
113+ cd " $flake1Dir /.."
114+ nix build -o " $TEST_ROOT /result" " git+file:./$( basename " $flake1Dir " ) "
115+ )
116+
109117# Check that store symlinks inside a flake are not interpreted as flakes.
110118nix build -o " $flake1Dir /result" " git+file://$flake1Dir "
111119nix path-info " $flake1Dir /result"
You can’t perform that action at this time.
0 commit comments