aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2024-05-05 16:37:59 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-05 16:37:59 +0000
commit80dd6ab229ac0a140206c1a45300fb38e0bc3a0f (patch)
tree99a41f736c17193309a1bb16ce521e57198b0a77
parent6a5f100b8bab3b60932a950dfe7dcdfb0330084c (diff)
parente91be79d8eca848d68b3407b1decaf6a486b22d2 (diff)
Merge "tests/flakes/follow-paths: test that warning about non-existent input works recursively" into main
-rw-r--r--tests/functional/flakes/follow-paths.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/functional/flakes/follow-paths.sh b/tests/functional/flakes/follow-paths.sh
index cd3f75693..e91ce87b1 100644
--- a/tests/functional/flakes/follow-paths.sh
+++ b/tests/functional/flakes/follow-paths.sh
@@ -290,3 +290,20 @@ EOF
nix flake update --flake $flakeFollowsA
[[ $(jq -c .nodes.B.inputs.D $flakeFollowsA/flake.lock) = '["B","C","D"]' ]]
+
+cat <<EOF > $flakeFollowsA/flake.nix
+{
+ inputs.B.url = "path:$flakeFollowsB";
+ inputs.C.url = "path:$flakeFollowsC";
+ inputs.B.inputs.C.inputs.E.follows = "C";
+ outputs = _: {};
+}
+EOF
+cat <<EOF > $flakeFollowsB/flake.nix
+{
+ inputs.C.url = "path:$flakeFollowsC";
+ outputs = _: {};
+}
+EOF
+
+nix flake update --flake $flakeFollowsA 2>&1 | grepQuiet "warning: input 'B/C' has an override for a non-existent input 'E'"