We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e0c96 commit 740ab26Copy full SHA for 740ab26
nix_update/eval.py
@@ -102,7 +102,8 @@ def eval_expression(
102
inherit (flake) outPath;
103
outPathLen = stringLength outPath;
104
sanitizePosition = {{ file, ... }}@pos:
105
- assert substring 0 outPathLen file == outPath;
+ assert substring 0 outPathLen file != outPath
106
+ -> throw "${{file}} is not in ${{outPath}}";
107
pos // {{ file = "{import_path}" + substring outPathLen (stringLength file - outPathLen) file; }};
108
"""
109
else:
0 commit comments