Skip to content

"dynamic attributes not allowed" in let regression #14642

@flokli

Description

@flokli

Describe the bug

let a = 1; "b" = 2; ${"c"} = 3; in [ a b c ]

regressed from 2.30 to 2.32.

See

Nix 2.30.3
Type :? for help.
nix-repl> let a = 1; "b" = 2; ${"c"} = 3; in [ a b c ]
[
  1
  2
  3
]

vs

Nix 2.32.4
Type :? for help.
nix-repl> let a = 1; "b" = 2; ${"c"} = 3; in [ a b c ]
error: dynamic attributes not allowed in let
       at «string»:1:1:
            1| let a = 1; "b" = 2; ${"c"} = 3; in [ a b c ]
             | ^

Expected behavior

I'd expect this to not start to fail in a minor version bump, expressions out there might use it.

It's not mentioned in the release notes, and some quick git blaming around the error message also didn't show anything, so I assume this is a regression.

Additional context

https://cl.snix.dev/c/snix/+/30758

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcregressionSomething doesn't work anymore

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions