tvix/eval: dynamic attribute set keys are forbidden in rec sets

Opened by sterni at 2022-09-19T10·33+00

This is a side effect of the refactor we did to reuse compile_recursive_scope from let … in … compilation: We need to make the attribute path normalisation conditional on the rec_attrs argument and skip this step for recursive attribute sets:

tvix-repl> rec { "${"foo"}bar" = 13; }
compiler error: DynamicKeyInLet at `"${"foo"}bar"`[line 1]

This issue is already known and best tackled when we implement nested attribute path support in compile_recursive_scope.

  1. cl/6712 will address this once finished

    tazjin at 2022-09-22T19·31+00

  2. Fixed in cl/6781, which is part of the chain that cl/6712 is being broken up into.

    tazjin at 2022-09-25T13·36+00

  3. tazjin closed this issue at 2022-10-02T13·51+00