aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-07-13 14:45:07 +0200
committerGitHub <noreply@github.com>2022-07-13 14:45:07 +0200
commite1153069bd0e3320227c997c32e657f7e652a212 (patch)
tree0952e2c51e21625a0d7e5b6c6fd13af26f3d67da /tests
parent19190c2346b84916c64737d895b87b570c673b96 (diff)
parent12df8885cc70499cc8fa2bfe73992c6d37ec332e (diff)
Merge pull request #6797 from edolstra/overrides-check
Simplify the check for overrides on non-existent inputs
Diffstat (limited to 'tests')
-rw-r--r--tests/flakes.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh
index 265e4a456..6574cabf1 100644
--- a/tests/flakes.sh
+++ b/tests/flakes.sh
@@ -877,6 +877,7 @@ cat >$flakeFollowsA/flake.nix <<EOF
inputs.B = {
url = "path:./flakeB";
inputs.invalid.follows = "D";
+ inputs.invalid2.url = "path:./flakeD";
};
inputs.D.url = "path:./flakeD";
outputs = { ... }: {};
@@ -885,4 +886,5 @@ EOF
git -C $flakeFollowsA add flake.nix
-nix flake lock $flakeFollowsA 2>&1 | grep "warning: B has a \`follows'-declaration for a non-existant input invalid!"
+nix flake lock $flakeFollowsA 2>&1 | grep "warning: input 'B' has an override for a non-existent input 'invalid'"
+nix flake lock $flakeFollowsA 2>&1 | grep "warning: input 'B' has an override for a non-existent input 'invalid2'"