From 38f391444b47e5543f15b5c48e610dec6ee5cd1b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 4 Feb 2025 22:14:38 +0100 Subject: [PATCH] Add a test for a flake referencing a flake that has inputs.self --- tests/functional/flakes/flake-in-submodule.sh | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/functional/flakes/flake-in-submodule.sh b/tests/functional/flakes/flake-in-submodule.sh index b46eea2e0..fe5acf26d 100755 --- a/tests/functional/flakes/flake-in-submodule.sh +++ b/tests/functional/flakes/flake-in-submodule.sh @@ -27,6 +27,7 @@ git config --global protocol.file.allow always rootRepo=$TEST_ROOT/rootRepo subRepo=$TEST_ROOT/submodule +otherRepo=$TEST_ROOT/otherRepo createGitRepo "$subRepo" @@ -91,6 +92,33 @@ git -C "$rootRepo" commit -a -m "Bla" storePath=$(nix eval --raw "$rootRepo#foo") [[ -e "$storePath/submodule" ]] + +# Test another repo referring to a repo that uses inputs.self. +createGitRepo "$otherRepo" +cat > "$otherRepo"/flake.nix <