This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
nix
Watch
2
Star
0
Fork
0
You've already forked nix
mirror of
https://github.com/NixOS/nix.git
synced
2025-02-16 17:02:28 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
nix
/
tests
/
functional
/
lang
/
eval-fail-using-set-as-attr-name.nix
8 lines
65 B
Nix
Raw
Permalink
Normal View
History
Unescape
Escape
Pass positions when evaluating This includes position information in more places, making debugging easier. Before: ``` $ nix-instantiate --show-trace --eval tests/functional/lang/eval-fail-using-set-as-attr-name.nix error: … while evaluating an attribute name at «none»:0: (source not available) error: value is a set while a string was expected ``` After: ``` error: … while evaluating an attribute name at /pwd/lang/eval-fail-using-set-as-attr-name.nix:5:10: 4| in 5| attr.${key} | ^ 6| error: value is a set while a string was expected ```
2023-12-07 18:01:42 +00:00
let
Format .nix files ... with nixfmt (rfc style)
2025-01-24 12:37:47 +00:00
attr
=
{
foo
=
"
b
a
r
"
;
}
;
key
=
{
}
;
Pass positions when evaluating This includes position information in more places, making debugging easier. Before: ``` $ nix-instantiate --show-trace --eval tests/functional/lang/eval-fail-using-set-as-attr-name.nix error: … while evaluating an attribute name at «none»:0: (source not available) error: value is a set while a string was expected ``` After: ``` error: … while evaluating an attribute name at /pwd/lang/eval-fail-using-set-as-attr-name.nix:5:10: 4| in 5| attr.${key} | ^ 6| error: value is a set while a string was expected ```
2023-12-07 18:01:42 +00:00
in
Format .nix files ... with nixfmt (rfc style)
2025-01-24 12:37:47 +00:00
attr
.
${
key
}
Reference in New Issue
Copy Permalink