Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-02 | Don't use state.positions[noPos] | Eelco Dolstra | |
This caused traces 'at «none»:0: (source not available)'. | |||
2023-01-02 | Merge remote-tracking branch 'origin/master' into coerce-string | Eelco Dolstra | |
2023-01-02 | Merge pull request #5941 from hercules-ci/optimize-intersectAttrs | Théophane Hufschmitt | |
Optimize intersectAttrs performance | |||
2023-01-02 | antiquotation -> string interpolation | Valentin Gagarin | |
as proposed by @mkaito[1] and @tazjin[2] and discussed with @edolstra and Nix maintainers [1]: https://github.com/NixOS/nix.dev/pull/267#issuecomment-1270076332 [2]: https://github.com/NixOS/nix.dev/pull/267#issuecomment-1270201979 Co-authored-by: John Ericson <git@JohnEricson.me> Co-authored-by: Eelco Dolstra <edolstra@gmail.com> | |||
2023-01-02 | Merge pull request #7478 from hercules-ci/make-sure-initNix-called | Théophane Hufschmitt | |
libstore: Make sure that initNix has been called | |||
2023-01-02 | Merge pull request #7351 from NaN-git/fix-mkString | Théophane Hufschmitt | |
cleanup eval.hh/eval.cc | |||
2022-12-24 | Optimize intersectAttrs performance | Robert Hensing | |
Always traverse the shortest set. | |||
2022-12-24 | libstore: Make sure that initNix has been called | Robert Hensing | |
Prevent bugs like https://github.com/cachix/cachix/pull/477 | |||
2022-12-24 | remove undefined function | Philipp Otterbein | |
2022-12-24 | remove function makeImmutableStringWithLen | Philipp Otterbein | |
2022-12-21 | primops `storeDir` test uses `settings.nixStore` | mupdt | |
2022-12-20 | Merge pull request #7451 from edolstra/abstract-pos | Eelco Dolstra | |
Introduce AbstractPos | |||
2022-12-16 | printMsg replacement by printInfo | Solène Rapenne | |
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | |||
2022-12-14 | warnings: switch to info level when using a saved substituter | Solène Rapenne | |
2022-12-13 | Restore display of source lines for stdin/string inputs | Eelco Dolstra | |
2022-12-13 | Fix compilation | Eelco Dolstra | |
2022-12-13 | Improve cast safety | Eelco Dolstra | |
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | |||
2022-12-13 | Merge pull request #6741 from Mindavi/nix-no-gc | Théophane Hufschmitt | |
support building with --enable-gc=no | |||
2022-12-13 | Introduce AbstractPos | Eelco Dolstra | |
This makes the position object used in exceptions abstract, with a method getSource() to get the source code of the file in which the error originated. This is needed for lazy trees because source files don't necessarily exist in the filesystem, and we don't want to make libutil depend on the InputAccessor type in libfetcher. | |||
2022-12-12 | support building with --enable-gc=no | Rick van Schijndel | |
Some minor changes fixing the build without boehm. Fixes NixOS#6250 | |||
2022-12-12 | Fix stack context notes to not rely on order | John Ericson | |
Make everything be in the form "while ..." (most things were already), and in particular *don't* use other propositions that must go after or before specific "while ..." clauses to make sense. | |||
2022-12-12 | Support flake references in the old CLI | Eelco Dolstra | |
Fixes #7026. | |||
2022-12-12 | Move isUri() and resolveUri() out of filetransfer.cc | Eelco Dolstra | |
These are purely related to NIX_PATH / -I command line parsing, so put them in libexpr. | |||
2022-12-12 | Use get_ptr() | Eelco Dolstra | |
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | |||
2022-12-12 | Update URL | Eelco Dolstra | |
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> | |||
2022-12-07 | Trivial changes from the lazy-trees branch | Eelco Dolstra | |
2022-12-02 | Merge pull request #7395 from obsidiansystems/evaluating-to-calling | Eelco Dolstra | |
Change "while evaluating <fun>" to "while *calling*" in trace | |||
2022-12-02 | Change "while evaluating <fun>" to "while *calling*" in trace | John Ericson | |
The old way was not correct. Here is an example: ``` $ nix-instantiate --eval --expr 'let x = a: throw "asdf"; in x 1' --show-trace error: asdf … while evaluating 'x' at «string»:1:9: 1| let x = a: throw "asdf"; in x 1 | ^ … from call site at «string»:1:29: 1| let x = a: throw "asdf"; in x 1 | ^ ``` and yet also: ``` $ nix-instantiate --eval --expr 'let x = a: throw "asdf"; in x' --show-trace <LAMBDA> ``` Here is the thing: in both cases we are evaluating `x`! Nix is a higher-order languages, and functions are a sort of value. When we write `x = a: ...`, `a: ...` is the expression that `x` is being defined to be, and that is already a value. Therefore, we should *never* get an trace that says "while evaluating `x`", because evaluating `a: ...` is *trival* and nothing happens during it! What is actually happening here is we are applying `x` and evaluating its *body* with arguments substituted for parameters. I think the simplest way to say is just "while *calling* `x`", and so that is what I changed it to. | |||
2022-12-01 | doc: listToAttrs: add extra whitespace | Alex Ameen | |
2022-11-30 | doc: listToAttrs: fix line wrapping | Alex Ameen | |
2022-11-30 | doc: listToAttrs: document repeated keys | Alex Ameen | |
2022-11-28 | Merge pull request #7313 from yorickvP/nlohmann-everywhere | Eelco Dolstra | |
Replace src/libutil/json.cc with nlohmann | |||
2022-11-25 | Don't use GC_STRNDUP | Eelco Dolstra | |
It calls strlen() on the input (rather than simply copying at most `size` bytes), which can fail if the input is not zero-terminated and is inefficient in any case. Fixes #7347. | |||
2022-11-16 | Replace src/libutil/json.cc with nlohmann json generation | Yorick van Pelt | |
2022-11-14 | Merge remote-tracking branch 'nixos/master' into readFile-scan-references | Théophane Hufschmitt | |
2022-11-11 | Restrict `readFile` context to references that appear in the string | Naïm Favier | |
When calling `builtins.readFile` on a store path, the references of that path are currently added to the resulting string's context. This change makes those references the *possible* context of the string, but filters them to keep only the references whose hash actually appears in the string, similarly to what is done for determining the runtime references of a path. | |||
2022-11-10 | Merge pull request #7258 from ncfavier/fix-eval-error-fmt | Théophane Hufschmitt | |
Fix printing of eval errors with two format placeholders | |||
2022-11-04 | Fix printing of eval errors with two format placeholders | Naïm Favier | |
2022-10-25 | Use _type | Eelco Dolstra | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||
2022-10-25 | Complete genericClosure tests | Guillaume Maudoux | |
2022-10-25 | Rework error throwing, and test it | Guillaume Maudoux | |
2022-10-23 | Mark flakes with .type = "flake". | Shea Levy | |
Fixes #7186 | |||
2022-10-23 | Try to please clang with convoluted templates | Guillaume Maudoux | |
2022-10-22 | Introduce an Error builder to tackle complexity | Guillaume Maudoux | |
2022-10-20 | Rollback unneeded throwFrameErrorWithTrace function | Guillaume Maudoux | |
2022-10-20 | Fix context message being printed twice with forceStringNoCtx | Guillaume Maudoux | |
2022-10-20 | Reword incomparable types message | Guillaume Maudoux | |
2022-10-20 | Revert custom position of 'if' blocks | Guillaume Maudoux | |
2022-10-17 | Initial frames support | Guillaume Maudoux | |
2022-10-16 | Merge remote-tracking branch 'origin/master' into coerce-string | Guillaume Maudoux | |