fix(tvix/glue/tests): resolve logic error in hasContextInAttrKeys

Change-Id: I7aa09c10f803c2b79363fe3eb52c1127276a333b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10676
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
This commit is contained in:
sterni 2024-01-20 21:21:32 +01:00 committed by clbot
parent bdeb6f406e
commit 842d5ed3ee

View file

@ -18,7 +18,8 @@ let
# then, we reassemble the list into a proper string.
discardContext = target: builtins.concatStringsSep "" (builtins.split "(.*)" "${target}");
hasContextInAttrKeys = attrs: builtins.all builtins.hasContext (builtins.attrNames attrs);
# Note that this should never return true for any attribute set.
hasContextInAttrKeys = attrs: builtins.any builtins.hasContext (builtins.attrNames attrs);
path = "${./eval-okay-context-introspection.nix}";