From cc3060ed7cd181a1f44a498673ced8e39acba8ab Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 30 Oct 2022 13:35:31 -0700 Subject: docs(tvix/eval): builtins.md: mark impure I believe that the currentTime, findFile, hashFile, pathExists, readDir, path (unless ?sha256), and readFile builtins are impure. This commit marks them as such in docs/builtins.md. Change-Id: Ib1b59fe643dde73cb2b00050b4ef9d3401ad22eb Signed-off-by: Adam Joseph Reviewed-on: https://cl.tvl.fyi/c/depot/+/7139 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/eval/docs/builtins.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tvix/eval/docs') diff --git a/tvix/eval/docs/builtins.md b/tvix/eval/docs/builtins.md index 27ee363a0b57..cb0cc828d29a 100644 --- a/tvix/eval/docs/builtins.md +++ b/tvix/eval/docs/builtins.md @@ -31,7 +31,7 @@ See also https://nixos.org/manual/nix/stable/expressions/builtins.html | concatMap | false | | | | concatStringsSep | false | | | | currentSystem | false | | | -| currentTime | false | | | +| currentTime | false | | false | | deepSeq | false | | | | derivation | true | | | | derivationStrict | true | | | @@ -46,7 +46,7 @@ See also https://nixos.org/manual/nix/stable/expressions/builtins.html | fetchurl | false | | | | filter | false | | | | filterSource | false | | | -| findFile | false | | | +| findFile | false | | false | | foldl' | false | | | | fromJSON | false | | | | fromTOML | true | | | @@ -58,7 +58,7 @@ See also https://nixos.org/manual/nix/stable/expressions/builtins.html | getEnv | false | | false | | hasAttr | false | | | | hasContext | false | | | -| hashFile | false | | | +| hashFile | false | | false | | hashString | false | | | | head | false | | | | import | true | | | @@ -85,11 +85,11 @@ See also https://nixos.org/manual/nix/stable/expressions/builtins.html | null | true | | | | parseDrvName | false | | | | partition | false | | | -| path | false | | | -| pathExists | false | | | +| path | false | | sometimes | +| pathExists | false | | false | | placeholder | true | | | -| readDir | false | | | -| readFile | false | | | +| readDir | false | | false | +| readFile | false | | false | | removeAttrs | true | | | | replaceStrings | false | | | | scopedImport | true | | | -- cgit 1.4.1