about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-13T16·42+0300
committertazjin <tazjin@tvl.su>2022-08-28T17·50+0000
commit2d401a32e5cef36b44fd35b12c58489cd2595f72 (patch)
treedb3d8f3e64e72ef440f8811e09b94a2239cdf7e7 /tools
parent691a596aac0381d7794c6969cb9793131aa998f3 (diff)
feat(tvix/eval): detect dynamic identifier names in `let` r/4523
Nix does not allow dynamic identifiers in let expressions (only in
attribute sets), but there are several different kinds of things it
considers static identifiers.

The functions introduced here put the path components of a let
expression into normalised (string) form, and surface an error about
dynamic keys if one is encountered.

Change-Id: Ia3ebd95c6f3ed3cd33b94e156930d2e9c39b6cbf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6189
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions