lix/src/libexpr/primops
Kevin Amado 823dce945a
fetch: nicer infinite recursion errors
- This change applies to builtins.fetchurl and builtins.fetchTarball
- PoC: `let x = builtins.fetchurl 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:1:9:

            1| let x = builtins.fetchurl x; in x
             |         ^
  ```

Mentions: #3505
2021-10-17 12:54:53 -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 fetch: nicer infinite recursion errors 2021-10-17 12:54:53 -05:00
fromTOML.cc Improve error formatting 2021-01-21 11:02:09 +01:00