lix/src/libexpr/primops
Kevin Amado e5a27a3b4e
fetchTree: add pos to EvalState::forceValue
- This way we improve error messages
  on infinite recursion
- Demo:
  ```nix
  let x = builtins.fetchTree {
    type = "git";
    inherit x;
  };
  in x
  ```
- Before:
  ```bash
  $ nix-instantiate --extra-experimental-features flakes --strict
  error: infinite recursion encountered
  ```
- After:
  ```bash
  $ nix-instantiate --extra-experimental-features flakes --strict
  error: infinite recursion encountered

       at /data/github/kamadorueda/nix/test.nix:3:10:

            2|   type = "git";
            3|   inherit x;
             |          ^
            4| };
  ```

Mentions: #3505
2021-10-15 19:25:19 -05:00
..
context.cc Improve error formatting 2021-01-21 11:02:09 +01:00
derivation.nix Remove corepkgs/derivation.nix 2020-09-17 09:41:02 +02:00
fetchMercurial.cc add pos to EvalState::forceValue 2021-10-14 23:23:05 -05:00
fetchTree.cc fetchTree: add pos to EvalState::forceValue 2021-10-15 19:25:19 -05:00
fromTOML.cc Improve error formatting 2021-01-21 11:02:09 +01:00