1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-17 22:41:08 +01:00
nix/src
Robert Hensing 09763c7cad getDerivations: add attributes to trace
This improves the error message of nix-env -qa, among others, which
is crucial for understanding some ofborg eval error reports, such as
https://gist.github.com/GrahamcOfBorg/89101ca9c2c855d288178f1d3c78efef

After this change, it will report the same trace, but also start with

```
error:
       … while evaluating the attribute 'devShellTools'

       … while evaluating the attribute 'nixos'

       … while evaluating the attribute 'docker-tools-nix-shell'

       … while evaluating the attribute 'aarch64-darwin'

       … from call site
         at /home/user/h/nixpkgs/outpaths.nix:48:6:
           47|   tweak = lib.mapAttrs
           48|     (name: val:
             |      ^
           49|       if name == "recurseForDerivations" then true

<same>
```
2024-07-05 15:30:07 +02:00
..
build-remote Use the new StoreReference in Machine 2024-05-22 09:20:15 -04:00
external-api-docs Use lib instead of explicit fileset passing 2024-06-26 04:11:20 +02:00
internal-api-docs Use lib instead of explicit fileset passing 2024-06-26 04:11:20 +02:00
libcmd docs: split types from syntax (#11013) 2024-07-03 09:03:41 +02:00
libexpr getDerivations: add attributes to trace 2024-07-05 15:30:07 +02:00
libexpr-c No global eval settings in libnixexpr 2024-06-24 12:15:16 -04:00
libfetchers Merge pull request #11018 from siddhantk232/canonpath-fs-sink 2024-07-03 10:36:18 -04:00
libflake Restore commit-lock-file-summary rename for consistency 2024-06-28 14:53:40 -07:00
libmain Split out GlobalConfig into its own header 2024-06-24 11:36:21 -04:00
libstore Merge pull request #11018 from siddhantk232/canonpath-fs-sink 2024-07-03 10:36:18 -04:00
libstore-c add empty line to documentation comments after @brief field (#10800) 2024-05-28 23:05:40 +00:00
libutil Merge pull request #11018 from siddhantk232/canonpath-fs-sink 2024-07-03 10:36:18 -04:00
libutil-c enable -Werror=unused-result 2024-07-02 08:46:06 +02:00
nix Use proper struct sockpeercred for SO_PEERCRED for OpenBSD 2024-07-03 11:16:39 -04:00
nix-build No global eval settings in libnixexpr 2024-06-24 12:15:16 -04:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage inline the usage of nix::readDirectory 2024-05-12 17:42:18 +05:30
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Merge pull request #10913 from NixOS/no-global-eval-settings-in-libexpr 2024-06-24 18:52:19 +02:00
nix-instantiate No global eval settings in libnixexpr 2024-06-24 12:15:16 -04:00
nix-store Cleanup ContentAddressMethod to match docs 2024-06-24 10:24:06 -04:00
perl enable -Werror=unused-result 2024-07-02 08:46:06 +02:00
libutil-test Build nix-util-c with meson and unit test 2024-06-25 21:35:23 +02:00
libutil-test-support Build nix-util-c with meson and unit test 2024-06-25 21:35:23 +02:00